fix auto-focus and isMobile variable

This commit is contained in:
Gustavo Maximiliano Cortez 2014-12-04 20:42:08 -03:00
commit ec99639323
4 changed files with 9 additions and 5 deletions

View file

@ -1,11 +1,12 @@
'use strict';
angular.module('copayApp.controllers').controller('CreateProfileController', function($scope, $rootScope, $location, $timeout, notification, pluginManager, identityService, pinService) {
angular.module('copayApp.controllers').controller('CreateProfileController', function($scope, $rootScope, $location, $timeout, notification, pluginManager, identityService, pinService, isMobile) {
var _credentials, _firstpin;
$scope.init = function() {
identityService.goWalletHome();
$scope.isMobile = isMobile.any();
pinService.makePinInput($scope, 'newpin', function(newValue) {
_firstpin = newValue;
@ -88,7 +89,7 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun
} else {
$scope.error = null;
// mobile
if (isMobile.any()) {
if ($scope.isMobile) {
_credentials = {
email: form.email.$modelValue,
password: form.password.$modelValue,