Add direct access to a currency with a custom URL
This commit is contained in:
parent
3708b27a41
commit
2957c41c60
2 changed files with 14 additions and 0 deletions
|
@ -9262,6 +9262,13 @@ if (ninja.getQueryString()["culture"] != undefined) {
|
||||||
if (ninja.getQueryString()["showseedpool"] == "true" || ninja.getQueryString()["showseedpool"] == "1") {
|
if (ninja.getQueryString()["showseedpool"] == "true" || ninja.getQueryString()["showseedpool"] == "1") {
|
||||||
document.getElementById("seedpoolarea").style.display = "block";
|
document.getElementById("seedpoolarea").style.display = "block";
|
||||||
}
|
}
|
||||||
|
// change currency
|
||||||
|
if (ninja.getQueryString()["currency"] != undefined) {
|
||||||
|
for(i = 0; i < janin.currencies.length; i++) {
|
||||||
|
if (janin.currencies[i].name == ninja.getQueryString()["currency"])
|
||||||
|
janin.currency.useCurrency(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
// populate currency dropdown list
|
// populate currency dropdown list
|
||||||
var select = document.getElementById("currency");
|
var select = document.getElementById("currency");
|
||||||
var options = "";
|
var options = "";
|
||||||
|
|
|
@ -14,6 +14,13 @@ if (ninja.getQueryString()["culture"] != undefined) {
|
||||||
if (ninja.getQueryString()["showseedpool"] == "true" || ninja.getQueryString()["showseedpool"] == "1") {
|
if (ninja.getQueryString()["showseedpool"] == "true" || ninja.getQueryString()["showseedpool"] == "1") {
|
||||||
document.getElementById("seedpoolarea").style.display = "block";
|
document.getElementById("seedpoolarea").style.display = "block";
|
||||||
}
|
}
|
||||||
|
// change currency
|
||||||
|
if (ninja.getQueryString()["currency"] != undefined) {
|
||||||
|
for(i = 0; i < janin.currencies.length; i++) {
|
||||||
|
if (janin.currencies[i].name == ninja.getQueryString()["currency"])
|
||||||
|
janin.currency.useCurrency(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
// populate currency dropdown list
|
// populate currency dropdown list
|
||||||
var select = document.getElementById("currency");
|
var select = document.getElementById("currency");
|
||||||
var options = "";
|
var options = "";
|
||||||
|
|
Loading…
Add table
Reference in a new issue