fix button selection

This commit is contained in:
Javier 2015-11-24 12:12:02 -03:00
parent b89e7a2ff3
commit e95f9b176e
1 changed files with 9 additions and 0 deletions

View File

@ -9,6 +9,7 @@ angular.module('copayApp.controllers').controller('backupController',
var mnemonic = null;
function init() {
resetAllButtons();
customWords = [];
mnemonic = null;
self.xPrivKey = null;
@ -141,6 +142,14 @@ angular.module('copayApp.controllers').controller('backupController',
}
}
function resetAllButtons() {
var node = document.getElementById('addWord');
node.innerHTML = '';
lodash.each(self.mnemonicWords, function(d) {
document.getElementById(d).disabled = false;
});
}
self.enableButton = function(word) {
document.getElementById(word).disabled = false;
lodash.remove(customWords, function(v) {