diff --git a/public/views/modals/customized-amount.html b/public/views/modals/customized-amount.html index a50eb0764..af03b55de 100644 --- a/public/views/modals/customized-amount.html +++ b/public/views/modals/customized-amount.html @@ -53,9 +53,9 @@ Amount
- - + + {{unitName}}
@@ -63,9 +63,9 @@
- - + + {{ alternativeIsoCode }}
diff --git a/public/views/walletHome.html b/public/views/walletHome.html index d2a69224f..6d6e027fb 100644 --- a/public/views/walletHome.html +++ b/public/views/walletHome.html @@ -388,11 +388,8 @@ Amount
- - + + {{home.unitName}}
@@ -400,11 +397,8 @@
- - + + {{ home.alternativeIsoCode }}
diff --git a/src/js/directives/directives.js b/src/js/directives/directives.js index 6ca44a772..4388f99c4 100644 --- a/src/js/directives/directives.js +++ b/src/js/directives/directives.js @@ -92,7 +92,6 @@ angular.module('copayApp.directives') require: 'ngModel', link: function(scope, element, attrs, ctrl) { var val = function(value) { - if (value) value = Number(String(value).replace(/,/g, '.')); var settings = configService.getSync().wallet.settings; var vNum = Number((value * settings.unitToSatoshi).toFixed(0)); @@ -120,33 +119,6 @@ angular.module('copayApp.directives') }; } ]) - .directive('validAlternative', [ - function() { - - return { - require: 'ngModel', - link: function(scope, element, attrs, ctrl) { - var val = function(value) { - if (value) value = Number(String(value).replace(/,/g, '.')); - var vNum = Number(value); - - if (typeof value == 'undefined' || value == 0) { - ctrl.$pristine = true; - } - - if (typeof vNum == "number" && vNum > 0) { - ctrl.$setValidity('validAlternative', true); - } else { - ctrl.$setValidity('validAlternative', false); - } - return value; - } - ctrl.$parsers.unshift(val); - ctrl.$formatters.unshift(val); - } - }; - } - ]) .directive('walletSecret', function(bitcore) { return { require: 'ngModel',