Mercurial > hg > fulltextSearchFrontEnd
changeset 2:ab6c05b4d8dd default tip
bugs
author | dwinter |
---|---|
date | Wed, 26 Jan 2011 16:36:51 +0100 |
parents | 47f3c44eff7d |
children | |
files | WebContent/found.js |
diffstat | 1 files changed, 12 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/WebContent/found.js Wed Jan 26 14:42:10 2011 +0100 +++ b/WebContent/found.js Wed Jan 26 16:36:51 2011 +0100 @@ -78,7 +78,7 @@ //console.log("all:"+all[lang]); //console.log("all_this:"+this); //console.log("all_lang_new:"+lang); - $('#show_next_'+lang).html(createNavString(lang)); + $('#show_next_'+lang.replace(":","\\:")).html(createNavString(lang)); }); $('#language_results_'+lang.replace(":","\\:")).load( @@ -275,10 +275,10 @@ if (langs instanceof Array) { for ( var i=0; i<langsLen; ++i ){ //ret+=$(langs[i]).text()+"_"; - ret.push(langs[i]); + ret.push(langs[i].replace("%3A",":")); } } else { - ret.push(langs); + ret.push(langs.replace("%3A",":")); } return ret; @@ -310,7 +310,7 @@ if (!(languages instanceof Array)){ var tmp = langs; languages = new Array(); - languages.push(tmp); + languages.push(tmp.replace("%3A",":")); } //console.log("langs2:"+languages); //hole begin end fuer die sprachen setze generisch auf 20 @@ -397,11 +397,11 @@ fromNew=Math.max(0,parseInt(from[lg])-viewNumber); //toNew=Math.max(0,parseInt(to[lg])-viewNumber); - retStr.push("from_"+lg+"="+fromNew); - retStr.push("to_"+lg+"="+toNew); + retStr.push("from_"+escape(lg)+"="+fromNew); + retStr.push("to_"+escape(lg)+"="+toNew); } else { - retStr.push("from_"+lg+"="+from[lg]); - retStr.push("to_"+lg+"="+to[lg]); + retStr.push("from_"+escape(lg)+"="+from[lg]); + retStr.push("to_"+escape(lg)+"="+to[lg]); } @@ -430,11 +430,11 @@ if(lg==selectedLanguage){ fromNew=Math.min(maxPageNum,parseInt(to[lg])); toNew=Math.min(maxPageNum,parseInt(to[lg])+viewNumber); - retStr.push("from_"+lg+"="+fromNew); - retStr.push("to_"+lg+"="+toNew); + retStr.push("from_"+escape(lg)+"="+fromNew); + retStr.push("to_"+escape(lg)+"="+toNew); } else { - retStr.push("from_"+lg+"="+from[lg]); - retStr.push("to_"+lg+"="+to[lg]); + retStr.push("from_"+escape(lg)+"="+from[lg]); + retStr.push("to_"+escape(lg)+"="+to[lg]); } }