url currency selector case independant

This commit is contained in:
Michael Muré 2014-05-08 10:28:58 +02:00
parent 67c6aedc1c
commit b941baa456
2 changed files with 2 additions and 2 deletions

View file

@ -9507,7 +9507,7 @@ if (ninja.getQueryString()["showseedpool"] == "true" || ninja.getQueryString()["
janin.selectedCurrency = janin.currencies[1];
if (ninja.getQueryString()["currency"] != undefined) {
for(i = 0; i < janin.currencies.length; i++) {
if (janin.currencies[i].name == ninja.getQueryString()["currency"])
if (janin.currencies[i].name.toLowerCase() == ninja.getQueryString()["currency"].toLowerCase())
janin.currency.useCurrency(i);
}
}

View file

@ -18,7 +18,7 @@ if (ninja.getQueryString()["showseedpool"] == "true" || ninja.getQueryString()["
janin.selectedCurrency = janin.currencies[1];
if (ninja.getQueryString()["currency"] != undefined) {
for(i = 0; i < janin.currencies.length; i++) {
if (janin.currencies[i].name == ninja.getQueryString()["currency"])
if (janin.currencies[i].name.toLowerCase() == ninja.getQueryString()["currency"].toLowerCase())
janin.currency.useCurrency(i);
}
}