From de43990882292ac911f7036947112dc9f2e86861 Mon Sep 17 00:00:00 2001 From: Matias Pando Date: Fri, 12 Sep 2014 10:24:27 -0300 Subject: [PATCH] Conflicts fixed --- js/directives.js | 12 +++++++----- views/create.html | 14 ++++++++++++++ views/join.html | 1 + 3 files changed, 22 insertions(+), 5 deletions(-) diff --git a/js/directives.js b/js/directives.js index 897757e39..27a4a131c 100644 --- a/js/directives.js +++ b/js/directives.js @@ -6,17 +6,16 @@ var bignum = bitcore.Bignum; var preconditions = require('preconditions').singleton(); angular.module('copayApp.directives') - .directive('validAddress', ['$rootScope', function($rootScope) { +.directive('validAddress', ['$rootScope', + function($rootScope) { return { require: 'ngModel', link: function(scope, elem, attrs, ctrl) { var validator = function(value) { // If we're setting the domain, ignore the change. - if ($rootScope.merchant - && $rootScope.merchant.domain - && value === $rootScope.merchant.domain) { + if ($rootScope.merchant && $rootScope.merchant.domain && value === $rootScope.merchant.domain) { ctrl.$setValidity('validAddress', true); return value; } @@ -27,6 +26,7 @@ angular.module('copayApp.directives') return value; } + // Bip21 uri if (/^bitcoin:/.test(value)) { var uri = new bitcore.BIP21(value); @@ -41,11 +41,13 @@ angular.module('copayApp.directives') return value; }; + ctrl.$parsers.unshift(validator); ctrl.$formatters.unshift(validator); } }; - }]) + } +]) .directive('enoughAmount', ['$rootScope', function($rootScope) { var w = $rootScope.wallet; diff --git a/views/create.html b/views/create.html index ddc4c6ce8..fca8cfb3c 100644 --- a/views/create.html +++ b/views/create.html @@ -30,6 +30,7 @@ @@ -38,6 +39,19 @@ +======= + symbols" + tooltip-trigger="focus" required + tooltip-placement="top"> + + Please enter the same password you entered above + +>>>>>>> Fixed diff --git a/views/join.html b/views/join.html index 9f972d352..7e58dba5d 100644 --- a/views/join.html +++ b/views/join.html @@ -64,6 +64,7 @@ numbers and symbols" tooltip-trigger="focus" tooltip-placement="top" required> + Please enter the same password you entered above