mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 15:38:43 +00:00
fix for when the login window hasn't been rendered
This commit is contained in:
parent
6b8ff92fe2
commit
7f597aff70
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue