From 8ac3e7c25f64ae0a89cc3447d9c3434dbb7f6a2a Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Tue, 16 Dec 2014 18:41:40 -0300 Subject: [PATCH] hide keyboard after enter a PIN --- js/controllers/createProfile.js | 3 +++ js/controllers/home.js | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/js/controllers/createProfile.js b/js/controllers/createProfile.js index 8e6719c8e..1fcddda7e 100644 --- a/js/controllers/createProfile.js +++ b/js/controllers/createProfile.js @@ -45,6 +45,9 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun preconditions.checkState(_credentials && _credentials.email); $rootScope.starting = true; + // hide Keyboard after submit form + var hideKeyboard = document.querySelector('#repeatpin').blur(); + $timeout(function() { pinService.save(pin, _credentials.email, _credentials.password, function(err) { _credentials.password = ''; diff --git a/js/controllers/home.js b/js/controllers/home.js index ae40397e0..b80be77d7 100644 --- a/js/controllers/home.js +++ b/js/controllers/home.js @@ -63,6 +63,9 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc } $rootScope.starting = true; + // hide Keyboard after submit form + var hideKeyboard = document.querySelector('#pin').blur(); + $timeout(function() { var credentials = pinService.get(pin, function(err, credentials) { if (err || !credentials) { @@ -89,6 +92,9 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc preconditions.checkState(_credentials && _credentials.email); $rootScope.starting = true; + // hide Keyboard after submit form + var hideKeyboard = document.querySelector('#repeatpin').blur(); + $timeout(function() { pinService.save(pin, _credentials.email, _credentials.password, function(err) { _credentials.password = '';