autofocus changes
This commit is contained in:
parent
552982d035
commit
4572b9a9c9
2 changed files with 11 additions and 8 deletions
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
<div class="input m20t">
|
||||
<input type="password" placeholder="{{'Your password'|translate}}"
|
||||
name="password" ng-model="pass.password" autofocus>
|
||||
id="passwordInput" name="password" ng-model="pass.password">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@ angular.module('copayApp.controllers').controller('passwordController',
|
|||
|
||||
self.isVerification = false;
|
||||
|
||||
document.getElementById("passwordInput").focus();
|
||||
|
||||
self.close = function(cb) {
|
||||
return cb('No password given');
|
||||
};
|
||||
|
|
@ -17,6 +19,7 @@ angular.module('copayApp.controllers').controller('passwordController',
|
|||
self.error = false;
|
||||
|
||||
if (isSetup && !self.isVerification) {
|
||||
document.getElementById("passwordInput").focus();
|
||||
self.isVerification = true;
|
||||
pass1 = self.password;
|
||||
self.password = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue