Author: damoxc

Revision: 5182

Log:
        clear the cookie rather than setting it to false

Diff:
Modified: trunk/deluge/ui/web/js/Deluge.Login.js
===================================================================
--- trunk/deluge/ui/web/js/Deluge.Login.js      2009-04-27 13:01:20 UTC (rev 
5181)
+++ trunk/deluge/ui/web/js/Deluge.Login.js      2009-04-27 13:56:53 UTC (rev 
5182)
@@ -114,7 +114,7 @@
                        if (session) {
                                Deluge.Client.web.delete_session(session, {
                                        success: function(result) {
-                                               
Deluge.UI.cookies.set("session", false);
+                                               
Deluge.UI.cookies.clear("session");
                                                this.show();
                                        },
                                        scope: this
@@ -132,12 +132,12 @@
                                                        
this.loginForm.items.get('password').setRawValue('');
                                                        this.hide();
                                                } else {
-                                                       
Deluge.UI.cookies.set("session", false);
+                                                       
Deluge.UI.cookies.clear("session");
                                                        this.show();
                                                }
                                        },
                                        failure: function(result) {
-                                               
Deluge.UI.cookies.set("session", false);
+                                               
Deluge.UI.cookies.clear("session");
                                                this.show();
                                        },
                                        scope: this



--~--~---------~--~----~------------~-------~--~----~
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