+ function entropyTypeChanged() {
+ entropyTypeAutoDetect = false;
+ entropyChanged();
+ }
+
+ function delayedSeedChanged() {
+ // Warn if there is an existing mnemonic or passphrase.
+ if (DOM.phrase.val().length > 0 || DOM.passphrase.val().length > 0) {
+ if (!confirm("This will clear existing mnemonic and passphrase")) {
+ DOM.seed.val(seed);
+ return
+ }
+ }
+ hideValidationError();
+ showPending();
+ // Clear existing mnemonic and passphrase
+ DOM.phrase.val("");
+ DOM.phraseSplit.val("");
+ DOM.passphrase.val("");
+ DOM.rootKey.val("");
+ clearAddressesList();
+ clearDerivedKeys();
+ seed = null;
+ if (seedChangedTimeoutEvent != null) {
+ clearTimeout(seedChangedTimeoutEvent);
+ }
+ seedChangedTimeoutEvent = setTimeout(seedChanged, 400);
+ }
+