fix logging in

This commit is contained in:
Damien Churchill 2010-01-23 15:34:32 +00:00
parent 1b2d5bc6ad
commit a59332b4ef
1 changed files with 3 additions and 4 deletions

View File

@ -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('');
}
});