diff --git a/public/views/create.html b/public/views/create.html index d07a3d212..607dff168 100644 --- a/public/views/create.html +++ b/public/views/create.html @@ -13,17 +13,17 @@
-
+
-
-
+
+
diff --git a/src/js/controllers/create.js b/src/js/controllers/create.js index 23d1d54d7..81b8573b7 100644 --- a/src/js/controllers/create.js +++ b/src/js/controllers/create.js @@ -1,10 +1,11 @@ 'use strict'; angular.module('copayApp.controllers').controller('createController', - function($scope, $rootScope, $location, $timeout, $log, lodash, go, profileService, configService, isCordova) { + function($scope, $rootScope, $location, $timeout, $log, lodash, go, profileService, configService, isMobile, isCordova) { var self = this; var defaults = configService.getDefaults(); + this.isWindowsPhoneApp = isMobile.Windows() && isCordova; /* For compressed keys, m*73 + n*34 <= 496 */ var COPAYER_PAIR_LIMITS = { @@ -68,6 +69,20 @@ angular.module('copayApp.controllers').controller('createController', }); }, 100); }; + + this.formFocus = function(what) { + if (!this.isWindowsPhoneApp) return + + if (what && what == 'my-name') { + this.hideWalletName = true; + } + else { + this.hideWalletName = false; + } + $timeout(function() { + $rootScope.$digest(); + }, 1); + }; $scope.$on("$destroy", function() { $rootScope.hideWalletNavigation = false; diff --git a/src/js/controllers/send.js b/src/js/controllers/send.js index 0d658e334..e98dc6223 100644 --- a/src/js/controllers/send.js +++ b/src/js/controllers/send.js @@ -55,12 +55,10 @@ angular.module('copayApp.controllers').controller('sendController', if (!this.isWindowsPhoneApp) return if (!what) { - $rootScope.wpInputFocused = false; this.hideAddress = false; this.hideAmount = false; } else { - $rootScope.wpInputFocused = true; if (what == 'amount') { this.hideAddress = true; } else if (what == 'msg') {