From 2021ea979c992595c0c652480187dbfd9dbd9a83 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Wed, 17 Dec 2014 10:37:11 -0300 Subject: [PATCH] WIP: password directive --- js/directives.js | 5 +---- views/createProfile.html | 13 ++++++++++++- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/js/directives.js b/js/directives.js index a83fd7d1c..afbdf8cf3 100644 --- a/js/directives.js +++ b/js/directives.js @@ -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; } }); } diff --git a/views/createProfile.html b/views/createProfile.html index 7503a48e9..4a1af88ce 100644 --- a/views/createProfile.html +++ b/views/createProfile.html @@ -148,10 +148,21 @@
- +
+
+
+ + +
+ + Password Strength: {{passwordStrength.message}} + +
+ +