fix logging in
This commit is contained in:
parent
1b2d5bc6ad
commit
a59332b4ef
|
@ -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…
Reference in New Issue