Author: damoxc

Revision: 5650

Log:
        fix for when the login window hasn't been rendered

Diff:
Modified: trunk/deluge/ui/web/js/Deluge.Login.js
===================================================================
--- trunk/deluge/ui/web/js/Deluge.Login.js      2009-08-11 23:43:56 UTC (rev 
5649)
+++ trunk/deluge/ui/web/js/Deluge.Login.js      2009-08-11 23:55:01 UTC (rev 
5650)
@@ -101,8 +101,6 @@
                                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 @@
                onShow: function() {
                        var passwordField = 
this.loginForm.items.get('password');
                        passwordField.focus(false, 150);
+                       passwordField.setRawValue('');
                }
        });
        



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to