fix for when the login window hasn't been rendered

This commit is contained in:
Damien Churchill 2009-08-11 23:55:01 +00:00
parent 6b8ff92fe2
commit 7f597aff70

View File

@ -101,8 +101,6 @@ Copyright:
success: function(result) {
if (result) {
Deluge.Events.fire('login');
this.loginForm.items.get('password').setRawValue('');
this.hide();
} else {
this.show(true);
}
@ -164,6 +162,7 @@ Copyright:
onShow: function() {
var passwordField = this.loginForm.items.get('password');
passwordField.focus(false, 150);
passwordField.setRawValue('');
}
});