aboutsummaryrefslogtreecommitdiff
path: root/src/js/index.js
diff options
context:
space:
mode:
authorIan Coleman <coleman.ian@gmail.com>2014-10-13 11:10:43 +1100
committerIan Coleman <coleman.ian@gmail.com>2014-10-13 11:10:43 +1100
commitd9ca83979293d38d84fdc735f0e07d049eb9a7f2 (patch)
treeb3237362e9b17a9eb0fd1fd7c031ea31799d7393 /src/js/index.js
parent1543fdbf090abaccffbf74b2417e676560da2a33 (diff)
downloadBIP39-d9ca83979293d38d84fdc735f0e07d049eb9a7f2.tar.gz
BIP39-d9ca83979293d38d84fdc735f0e07d049eb9a7f2.tar.zst
BIP39-d9ca83979293d38d84fdc735f0e07d049eb9a7f2.zip
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.
Diffstat (limited to 'src/js/index.js')
-rw-r--r--src/js/index.js11
1 files changed, 2 insertions, 9 deletions
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 @@
15 var DOM = {}; 15 var DOM = {};
16 DOM.network = $(".network"); 16 DOM.network = $(".network");
17 DOM.phraseNetwork = $("#network-phrase"); 17 DOM.phraseNetwork = $("#network-phrase");
18 DOM.bip44Network = $("#network-bip44");
19 DOM.addressNetwork = $("#network-address-type");
20 DOM.phrase = $(".phrase"); 18 DOM.phrase = $(".phrase");
21 DOM.passphrase = $(".passphrase"); 19 DOM.passphrase = $(".passphrase");
22 DOM.generate = $(".generate"); 20 DOM.generate = $(".generate");
@@ -84,15 +82,10 @@
84 } 82 }
85 else if (n == "dogecoin") { 83 else if (n == "dogecoin") {
86 network = Bitcoin.networks.dogecoin; 84 network = Bitcoin.networks.dogecoin;
87 var NO_BIP44_VALUE = 9999; 85 var UNOFFICIAL_BIP44_COIN = 9999;
88 DOM.bip44coin.val(NO_BIP44_VALUE); // This coin is not in BIP44 86 DOM.bip44coin.val(UNOFFICIAL_BIP44_COIN); // This coin is not in BIP44
89 } 87 }
90 setBip44DerivationPath(); 88 setBip44DerivationPath();
91 DOM.phraseNetwork.val(n);
92 DOM.bip44Network.val(n);
93 if(e.target != DOM.addressNetwork.dom){
94 DOM.addressNetwork.val(n);
95 }
96 delayedPhraseChanged(); 89 delayedPhraseChanged();
97 } 90 }
98 91