fixed lang switcher (dirty)
This commit is contained in:
parent
7d85633901
commit
0306595461
@ -4,9 +4,9 @@ function switchLocale(locale){
|
|||||||
|
|
||||||
function reloadWithQueryStringVars (queryStringVars) {
|
function reloadWithQueryStringVars (queryStringVars) {
|
||||||
var existingQueryVars = location.search ? location.search.substring(1).split("&") : [],
|
var existingQueryVars = location.search ? location.search.substring(1).split("&") : [],
|
||||||
currentUrl = location.search ? location.href.replace(location.search,"") : location.href,
|
//currentUrl = location.search ? location.href.replace(location.search,"") : location.href,
|
||||||
newQueryVars = {},
|
newQueryVars = {},
|
||||||
newUrl = currentUrl.replace(/#/g, "#") + "?";
|
newUrl = "http://www.slingit.org/?_lang="+queryStringVars._lang+"#";
|
||||||
if(existingQueryVars.length > 0) {
|
if(existingQueryVars.length > 0) {
|
||||||
for (var i = 0; i < existingQueryVars.length; i++) {
|
for (var i = 0; i < existingQueryVars.length; i++) {
|
||||||
var pair = existingQueryVars[i].split("=");
|
var pair = existingQueryVars[i].split("=");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user