fix for when the login window hasn't been rendered
This commit is contained in:
parent
6b8ff92fe2
commit
7f597aff70
@ -101,8 +101,6 @@ Copyright:
|
|||||||
success: function(result) {
|
success: function(result) {
|
||||||
if (result) {
|
if (result) {
|
||||||
Deluge.Events.fire('login');
|
Deluge.Events.fire('login');
|
||||||
this.loginForm.items.get('password').setRawValue('');
|
|
||||||
this.hide();
|
|
||||||
} else {
|
} else {
|
||||||
this.show(true);
|
this.show(true);
|
||||||
}
|
}
|
||||||
@ -164,6 +162,7 @@ Copyright:
|
|||||||
onShow: function() {
|
onShow: function() {
|
||||||
var passwordField = this.loginForm.items.get('password');
|
var passwordField = this.loginForm.items.get('password');
|
||||||
passwordField.focus(false, 150);
|
passwordField.focus(false, 150);
|
||||||
|
passwordField.setRawValue('');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user