fix selected currency in the dropdown list when a currency is selected via the URL
This commit is contained in:
parent
5bd6924dad
commit
de8e53a7fc
3 changed files with 4 additions and 6 deletions
|
@ -6621,8 +6621,6 @@ janin.currencies = [
|
||||||
janin.currency.createCurrency ("Testnet Bitcoin", 0x6f, 0xef, "9", "c", null)
|
janin.currency.createCurrency ("Testnet Bitcoin", 0x6f, 0xef, "9", "c", null)
|
||||||
];
|
];
|
||||||
|
|
||||||
janin.selectedCurrency = janin.currencies[1];
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var ninja = { wallets: {} };
|
var ninja = { wallets: {} };
|
||||||
|
@ -9264,6 +9262,7 @@ if (ninja.getQueryString()["showseedpool"] == "true" || ninja.getQueryString()["
|
||||||
document.getElementById("seedpoolarea").style.display = "block";
|
document.getElementById("seedpoolarea").style.display = "block";
|
||||||
}
|
}
|
||||||
// change currency
|
// change currency
|
||||||
|
janin.selectedCurrency = janin.currencies[1];
|
||||||
if (ninja.getQueryString()["currency"] != undefined) {
|
if (ninja.getQueryString()["currency"] != undefined) {
|
||||||
for(i = 0; i < janin.currencies.length; i++) {
|
for(i = 0; i < janin.currencies.length; i++) {
|
||||||
if (janin.currencies[i].name == ninja.getQueryString()["currency"])
|
if (janin.currencies[i].name == ninja.getQueryString()["currency"])
|
||||||
|
@ -9275,7 +9274,7 @@ var select = document.getElementById("currency");
|
||||||
var options = "";
|
var options = "";
|
||||||
for(i = 0; i < janin.currencies.length; i++) {
|
for(i = 0; i < janin.currencies.length; i++) {
|
||||||
options += "<option value='"+i+"'";
|
options += "<option value='"+i+"'";
|
||||||
if(janin.currencies[i].name=="Bitcoin")
|
if(janin.currencies[i].name == janin.currency.name())
|
||||||
options += " selected='selected'";
|
options += " selected='selected'";
|
||||||
options += ">"+janin.currencies[i].name+"</option>";
|
options += ">"+janin.currencies[i].name+"</option>";
|
||||||
}
|
}
|
||||||
|
|
|
@ -90,5 +90,3 @@ janin.currencies = [
|
||||||
|
|
||||||
janin.currency.createCurrency ("Testnet Bitcoin", 0x6f, 0xef, "9", "c", null)
|
janin.currency.createCurrency ("Testnet Bitcoin", 0x6f, 0xef, "9", "c", null)
|
||||||
];
|
];
|
||||||
|
|
||||||
janin.selectedCurrency = janin.currencies[1];
|
|
||||||
|
|
|
@ -15,6 +15,7 @@ if (ninja.getQueryString()["showseedpool"] == "true" || ninja.getQueryString()["
|
||||||
document.getElementById("seedpoolarea").style.display = "block";
|
document.getElementById("seedpoolarea").style.display = "block";
|
||||||
}
|
}
|
||||||
// change currency
|
// change currency
|
||||||
|
janin.selectedCurrency = janin.currencies[1];
|
||||||
if (ninja.getQueryString()["currency"] != undefined) {
|
if (ninja.getQueryString()["currency"] != undefined) {
|
||||||
for(i = 0; i < janin.currencies.length; i++) {
|
for(i = 0; i < janin.currencies.length; i++) {
|
||||||
if (janin.currencies[i].name == ninja.getQueryString()["currency"])
|
if (janin.currencies[i].name == ninja.getQueryString()["currency"])
|
||||||
|
@ -26,7 +27,7 @@ var select = document.getElementById("currency");
|
||||||
var options = "";
|
var options = "";
|
||||||
for(i = 0; i < janin.currencies.length; i++) {
|
for(i = 0; i < janin.currencies.length; i++) {
|
||||||
options += "<option value='"+i+"'";
|
options += "<option value='"+i+"'";
|
||||||
if(janin.currencies[i].name=="Bitcoin")
|
if(janin.currencies[i].name == janin.currency.name())
|
||||||
options += " selected='selected'";
|
options += " selected='selected'";
|
||||||
options += ">"+janin.currencies[i].name+"</option>";
|
options += ">"+janin.currencies[i].name+"</option>";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue