Coin selection is done from a single control

There were three places to select the coin type, which was getting
confusing. Only one place to select it is needed.
This commit is contained in:
Ian Coleman
2014-10-13 11:10:43 +11:00
parent 1543fdbf09
commit d9ca839792
2 changed files with 2 additions and 30 deletions
+2 -9
View File
@@ -15,8 +15,6 @@
var DOM = {};
DOM.network = $(".network");
DOM.phraseNetwork = $("#network-phrase");
DOM.bip44Network = $("#network-bip44");
DOM.addressNetwork = $("#network-address-type");
DOM.phrase = $(".phrase");
DOM.passphrase = $(".passphrase");
DOM.generate = $(".generate");
@@ -84,15 +82,10 @@
}
else if (n == "dogecoin") {
network = Bitcoin.networks.dogecoin;
var NO_BIP44_VALUE = 9999;
DOM.bip44coin.val(NO_BIP44_VALUE); // This coin is not in BIP44
var UNOFFICIAL_BIP44_COIN = 9999;
DOM.bip44coin.val(UNOFFICIAL_BIP44_COIN); // This coin is not in BIP44
}
setBip44DerivationPath();
DOM.phraseNetwork.val(n);
DOM.bip44Network.val(n);
if(e.target != DOM.addressNetwork.dom){
DOM.addressNetwork.val(n);
}
delayedPhraseChanged();
}