aboutsummaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js')
-rw-r--r--src/js/index.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/js/index.js b/src/js/index.js
index 6aee5dc..3543e53 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -90,6 +90,8 @@
90 DOM.hardenedAddresses = $(".hardened-addresses"); 90 DOM.hardenedAddresses = $(".hardened-addresses");
91 DOM.useBitpayAddressesContainer = $(".use-bitpay-addresses-container"); 91 DOM.useBitpayAddressesContainer = $(".use-bitpay-addresses-container");
92 DOM.useBitpayAddresses = $(".use-bitpay-addresses"); 92 DOM.useBitpayAddresses = $(".use-bitpay-addresses");
93 DOM.useBip38 = $(".use-bip38");
94 DOM.bip38Password = $(".bip38-password");
93 DOM.addresses = $(".addresses"); 95 DOM.addresses = $(".addresses");
94 DOM.csvTab = $("#csv-tab a"); 96 DOM.csvTab = $("#csv-tab a");
95 DOM.csv = $(".csv"); 97 DOM.csv = $(".csv");
@@ -133,6 +135,8 @@
133 DOM.bip141semantics.on("change", tabChanged); 135 DOM.bip141semantics.on("change", tabChanged);
134 DOM.tab.on("shown.bs.tab", tabChanged); 136 DOM.tab.on("shown.bs.tab", tabChanged);
135 DOM.hardenedAddresses.on("change", calcForDerivationPath); 137 DOM.hardenedAddresses.on("change", calcForDerivationPath);
138 DOM.useBip38.on("change", calcForDerivationPath);
139 DOM.bip38Password.on("change", calcForDerivationPath);
136 DOM.indexToggle.on("click", toggleIndexes); 140 DOM.indexToggle.on("click", toggleIndexes);
137 DOM.addressToggle.on("click", toggleAddresses); 141 DOM.addressToggle.on("click", toggleAddresses);
138 DOM.publicKeyToggle.on("click", togglePublicKeys); 142 DOM.publicKeyToggle.on("click", togglePublicKeys);
@@ -766,8 +770,8 @@
766 var self = this; 770 var self = this;
767 this.shouldGenerate = true; 771 this.shouldGenerate = true;
768 var useHardenedAddresses = DOM.hardenedAddresses.prop("checked"); 772 var useHardenedAddresses = DOM.hardenedAddresses.prop("checked");
769 var useBip38 = false; // TODO get from DOM 773 var useBip38 = DOM.useBip38.prop("checked");
770 var bip38password = "bip38password"; // TODO get from DOM 774 var bip38password = DOM.bip38Password.val();
771 var isSegwit = segwitSelected(); 775 var isSegwit = segwitSelected();
772 var segwitAvailable = networkHasSegwit(); 776 var segwitAvailable = networkHasSegwit();
773 var isP2wpkh = p2wpkhSelected(); 777 var isP2wpkh = p2wpkhSelected();