Skip to content
This repository was archived by the owner on Sep 2, 2023. It is now read-only.

Commit

Permalink
[TASK] Focus on password field (DC-61)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mesrop committed Aug 27, 2015
1 parent 4c01313 commit 1f97a47
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/js/tabs/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ LoginTab.prototype.angular = function (module) {

if(!!store.get('walletfile')) {
$scope.walletfile = store.get('walletfile');
angular.element("#login_password").focus();
}

$scope.fileInputClick = function(element){
filedialog.openFile(function(evt) {
$scope.$apply(function() {
store.set('walletfile', evt);
$scope.walletfile = evt;
angular.element("#login_password").focus();
});
}, false);
};
Expand Down Expand Up @@ -72,6 +74,7 @@ LoginTab.prototype.angular = function (module) {
$scope.$apply(function() {
store.set('walletfile', e.dataTransfer.files[0].path);
$scope.walletfile = e.dataTransfer.files[0].path;
angular.element("#login_password").focus();
});

return false;
Expand Down

0 comments on commit 1f97a47

Please sign in to comment.