From d9ca83979293d38d84fdc735f0e07d049eb9a7f2 Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Mon, 13 Oct 2014 11:10:43 +1100 Subject: 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. --- src/js/index.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/js') diff --git a/src/js/index.js b/src/js/index.js index bad4cfb..0ce039a 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -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(); } -- cgit v1.2.3