From 7f597aff70855ff16b0a94a8974cd7b5ec9506b0 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Tue, 11 Aug 2009 23:55:01 +0000 Subject: [PATCH] fix for when the login window hasn't been rendered --- deluge/ui/web/js/Deluge.Login.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deluge/ui/web/js/Deluge.Login.js b/deluge/ui/web/js/Deluge.Login.js index 17251f28e..23e55408b 100644 --- a/deluge/ui/web/js/Deluge.Login.js +++ b/deluge/ui/web/js/Deluge.Login.js @@ -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(''); } });