From 2b55e108f4e68438e2ea58e5aa53c444106de529 Mon Sep 17 00:00:00 2001 From: Gustavo Cortez Date: Wed, 23 Apr 2014 14:41:27 -0300 Subject: [PATCH] Changed rootScope for scope --- js/directives.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/directives.js b/js/directives.js index ddfa4bb48..2c80bd30d 100644 --- a/js/directives.js +++ b/js/directives.js @@ -42,14 +42,14 @@ angular.module('copay') if (typeof vNum == "number" && vNum > 0) { if ($rootScope.availableBalance <= vNum) { ctrl.$setValidity('enoughAmount', false); - $rootScope.notEnoughAmount = 'Insufficient funds!'; + scope.notEnoughAmount = 'Insufficient funds!'; } else { ctrl.$setValidity('enoughAmount', true); - $rootScope.notEnoughAmount = null; + scope.notEnoughAmount = null; } } else { - $rootScope.notEnoughAmount = null; + scope.notEnoughAmount = null; } return value; }