mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 09:58:39 +00:00
fix logging in
This commit is contained in:
parent
1b2d5bc6ad
commit
a59332b4ef
1 changed files with 3 additions and 4 deletions
|
@ -117,7 +117,7 @@ Ext.deluge.LoginWindow = Ext.extend(Ext.Window, {
|
||||||
},
|
},
|
||||||
|
|
||||||
onLogin: function() {
|
onLogin: function() {
|
||||||
var passwordField = this.loginForm.items.get('password');
|
var passwordField = this.passwordField;
|
||||||
Deluge.Client.auth.login(passwordField.getValue(), {
|
Deluge.Client.auth.login(passwordField.getValue(), {
|
||||||
success: function(result) {
|
success: function(result) {
|
||||||
if (result) {
|
if (result) {
|
||||||
|
@ -150,9 +150,8 @@ Ext.deluge.LoginWindow = Ext.extend(Ext.Window, {
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow: function() {
|
onShow: function() {
|
||||||
var passwordField = this.loginForm.items.get('password');
|
this.passwordField.focus(false, 150);
|
||||||
passwordField.focus(false, 150);
|
this.passwordField.setRawValue('');
|
||||||
passwordField.setRawValue('');
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue