diff options
author | Robert Johnson <sk8boy189@gmail.com> | 2014-09-29 22:47:01 -0500 |
---|---|---|
committer | Robert Johnson <sk8boy189@gmail.com> | 2014-09-29 22:47:01 -0500 |
commit | ddc8e877473f60233f3d80bf19decdd31175b07f (patch) | |
tree | c21d403fe7e54da5942afa3217e0b2b83e052c29 /src/js | |
parent | d6cedc9405e5f5751c8635f59ed3ff6876460776 (diff) | |
download | BIP39-ddc8e877473f60233f3d80bf19decdd31175b07f.tar.gz BIP39-ddc8e877473f60233f3d80bf19decdd31175b07f.tar.zst BIP39-ddc8e877473f60233f3d80bf19decdd31175b07f.zip |
allow for address change, while still allowing use of BIP44.
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/index.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/js/index.js b/src/js/index.js index 09bcdd9..24456bb 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -16,6 +16,7 @@ | |||
16 | DOM.network = $(".network"); | 16 | DOM.network = $(".network"); |
17 | DOM.phraseNetwork = $("#network-phrase"); | 17 | DOM.phraseNetwork = $("#network-phrase"); |
18 | DOM.bip44Network = $("#network-bip44"); | 18 | DOM.bip44Network = $("#network-bip44"); |
19 | DOM.addressNetwork = $("#network-address-type"); | ||
19 | DOM.phrase = $(".phrase"); | 20 | DOM.phrase = $(".phrase"); |
20 | DOM.passphrase = $(".passphrase"); | 21 | DOM.passphrase = $(".passphrase"); |
21 | DOM.generate = $(".generate"); | 22 | DOM.generate = $(".generate"); |
@@ -89,10 +90,13 @@ | |||
89 | } | 90 | } |
90 | else if (n == "dogecoin") { | 91 | else if (n == "dogecoin") { |
91 | network = Bitcoin.networks.dogecoin; | 92 | network = Bitcoin.networks.dogecoin; |
92 | disableBip44Tab(); | 93 | //disableBip44Tab(); |
93 | } | 94 | } |
94 | DOM.phraseNetwork.val(n); | 95 | DOM.phraseNetwork.val(n); |
95 | DOM.bip44Network.val(n); | 96 | DOM.bip44Network.val(n); |
97 | if(e.target != DOM.addressNetwork.dom){ | ||
98 | DOM.addressNetwork.val(n); | ||
99 | } | ||
96 | delayedPhraseChanged(); | 100 | delayedPhraseChanged(); |
97 | } | 101 | } |
98 | 102 | ||