[geeklog-hg] geeklog: Updated TitleToId function. Still doesn't work under IE10.
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Tue Jul 30 21:42:14 EDT 2013
changeset 9240:0f6822044e4c
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/0f6822044e4c
user: Tom <websitemaster at cogeco.net>
date: Tue Jul 30 21:41:55 2013 -0400
description:
Updated TitleToId function. Still doesn't work under IE10.
diffstat:
public_html/javascript/title_2_id.js | 16 ----------------
1 files changed, 0 insertions(+), 16 deletions(-)
diffs (34 lines):
diff -r b447b74d2a5c -r 0f6822044e4c public_html/javascript/title_2_id.js
--- a/public_html/javascript/title_2_id.js Tue Jul 30 21:41:12 2013 -0400
+++ b/public_html/javascript/title_2_id.js Tue Jul 30 21:41:55 2013 -0400
@@ -3,23 +3,8 @@
** Auto generate ID based on title **
*******************************************/
-function vNoE(param) {
- var param = param.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
- var rgxpt = "[\\?&]" + param + "=([^&#]*)";
- var regex = new RegExp(rgxpt);
- var result = regex.exec(window.location.href);
- if(result == null) return ""; else return result[1];
-}
-
-function vChkID() {
- var chkSID = vNoE("sid");
- if (chkSID == "") return false;
-}
-
function TitleToId(getTitle = 'title', setTl2ID = 'id', size = 128) {
- if(vChkID()==false) {
-
var Separ = "-";
var Sch = ["Ä", "â", "î", "Å", "Å£", "à ", "á", "ã", "ä", "Ã¥", "æ", "ç", "Å", "ð", "è", "é", "ê", "ë", "ì", "Ã", "ï", "ñ", "û", "ù", "ú", "ü", "ž", "ý", "ÿ", "ò", "ó", "õ", "ô", "ö", "ø", "Å¡"];
var Nch = ["a", "a", "i", "s", "t", "a", "a", "a", "a", "a", "a", "c", "oe", "d", "e", "e", "e", "e", "i", "i", "i", "n", "u", "u", "u", "u", "z", "y", "y", "o", "o", "o", "o", "o", "o", "s"];
@@ -35,5 +20,4 @@
T2ID.value = urlID.slice(0, size); // Max size of id
- } // end
}
\ No newline at end of file
More information about the geeklog-cvs
mailing list