Merge pull request #665 from yemel/feature/highlight-qr-code

Add highlight on QR change, add selected address below the QR
This commit is contained in:
Matias Alejo Garcia 2014-06-12 18:28:15 -03:00
commit bcbe97c15d
3 changed files with 40 additions and 2 deletions

View file

@ -120,6 +120,17 @@ angular.module('copayApp.directives')
}
}
})
.directive('highlightOnChange', function() {
return {
restrict: 'A',
link: function(scope, element, attrs) {
scope.$watch(attrs.highlightOnChange, function (newValue, oldValue) {
element.addClass('highlight');
setTimeout(function() { element.removeClass('highlight'); }, 500);
});
}
}
})
.directive('checkStrength', function() {
return {
replace: false,