fix currency selection

This commit is contained in:
Michael Muré 2014-03-19 22:56:55 +01:00
parent a99b7d6d41
commit e6dcb2d859
2 changed files with 4 additions and 6 deletions

View file

@ -130,7 +130,7 @@
<div id="currencyddl" class="hide">
Choose currency :
<select id="currency" onchange="janin.currency.useCurrency(this);"></select>
<select id="currency" onchange="janin.currency.useCurrency(this.selectedIndex);"></select>
</div>
<div id="seedpoolarea"><textarea rows="16" cols="62" id="seedpool"></textarea></div>

View file

@ -32,12 +32,10 @@ janin.currency = {
return new RegExp("^" + janin.selectedCurrency.CWIF_Start + "[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{51}$");
},
useCurrency: function(currency) {
janin.selectedCurrency = currency;
// TODO: regenerate/reset current wallet (single, vanity ...)
// Switch currency
useCurrency: function(index) {
janin.selectedCurrency = janin.currencies[index];
},
};
janin.currencies = [