mirror of https://github.com/BTCPrivate/copay.git
Changed rootScope for scope
This commit is contained in:
parent
014b7310f4
commit
2b55e108f4
|
@ -42,14 +42,14 @@ angular.module('copay')
|
||||||
if (typeof vNum == "number" && vNum > 0) {
|
if (typeof vNum == "number" && vNum > 0) {
|
||||||
if ($rootScope.availableBalance <= vNum) {
|
if ($rootScope.availableBalance <= vNum) {
|
||||||
ctrl.$setValidity('enoughAmount', false);
|
ctrl.$setValidity('enoughAmount', false);
|
||||||
$rootScope.notEnoughAmount = 'Insufficient funds!';
|
scope.notEnoughAmount = 'Insufficient funds!';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ctrl.$setValidity('enoughAmount', true);
|
ctrl.$setValidity('enoughAmount', true);
|
||||||
$rootScope.notEnoughAmount = null;
|
scope.notEnoughAmount = null;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$rootScope.notEnoughAmount = null;
|
scope.notEnoughAmount = null;
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue