reset or regenerate wallet when changing currency
This commit is contained in:
parent
f69e3aea6e
commit
b892a6ca20
2 changed files with 64 additions and 59 deletions
108
index.html
108
index.html
File diff suppressed because one or more lines are too long
|
@ -35,6 +35,21 @@ janin.currency = {
|
||||||
// Switch currency
|
// Switch currency
|
||||||
useCurrency: function(index) {
|
useCurrency: function(index) {
|
||||||
janin.selectedCurrency = janin.currencies[index];
|
janin.selectedCurrency = janin.currencies[index];
|
||||||
|
|
||||||
|
// Regenerate a new wallet when not expensive
|
||||||
|
ninja.wallets.singlewallet.generateNewAddressAndKey();
|
||||||
|
ninja.wallets.paperwallet.build(document.getElementById('paperpassphrase').value);
|
||||||
|
ninja.wallets.brainwallet.view();
|
||||||
|
|
||||||
|
// Reset wallet tab when expensive or not applicable
|
||||||
|
document.getElementById("bulktextarea").value = "";
|
||||||
|
document.getElementById("vanitypubkey").innerHTML = "";
|
||||||
|
document.getElementById("vanityprivatekey").innerHTML = "";
|
||||||
|
document.getElementById("vanityinput1").value = "";
|
||||||
|
document.getElementById("vanityinput2").value = "";
|
||||||
|
document.getElementById("vanityaddress").value = "";
|
||||||
|
document.getElementById("vanitypublickeyhex").value = "";
|
||||||
|
document.getElementById("vanityprivatekeywif").value = "";
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue