WIP: password directive

This commit is contained in:
Matias Alejo Garcia 2014-12-17 10:37:11 -03:00
commit 2021ea979c
2 changed files with 13 additions and 5 deletions

View file

@ -250,10 +250,7 @@ angular.module('copayApp.directives')
scope.$watch(attrs.ngModel, function(newValue, oldValue) {
if (newValue && newValue !== '') {
var info = evaluateMeter(newValue);
element.css({
'border-color': info.color
});
scope[attrs.checkStrength] = info.message;
scope[attrs.checkStrength] = info;
}
});
}