mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +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() {
|
||||
var passwordField = this.loginForm.items.get('password');
|
||||
var passwordField = this.passwordField;
|
||||
Deluge.Client.auth.login(passwordField.getValue(), {
|
||||
success: function(result) {
|
||||
if (result) {
|
||||
|
@ -150,9 +150,8 @@ Ext.deluge.LoginWindow = Ext.extend(Ext.Window, {
|
|||
},
|
||||
|
||||
onShow: function() {
|
||||
var passwordField = this.loginForm.items.get('password');
|
||||
passwordField.focus(false, 150);
|
||||
passwordField.setRawValue('');
|
||||
this.passwordField.focus(false, 150);
|
||||
this.passwordField.setRawValue('');
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue