Author: damoxc
Revision: 5653
Log:
change onLogout to logout
Diff:
Modified: trunk/deluge/ui/web/js/Deluge.Login.js
===================================================================
--- trunk/deluge/ui/web/js/Deluge.Login.js 2009-08-11 23:57:54 UTC (rev
5652)
+++ trunk/deluge/ui/web/js/Deluge.Login.js 2009-08-11 23:58:19 UTC (rev
5653)
@@ -87,6 +87,16 @@
})
},
+ logout: function() {
+ Deluge.Events.fire('logout');
+ Deluge.Client.auth.delete_session({
+ success: function(result) {
+ this.show(true);
+ },
+ scope: this
+ });
+ },
+
show: function(skipCheck) {
if (this.firstShow) {
Deluge.Client.on('error', this.onClientError,
this);
@@ -142,16 +152,6 @@
});
},
- onLogout: function() {
- Deluge.Events.fire('logout');
- Deluge.Client.auth.delete_session({
- success: function(result) {
- this.show(true);
- },
- scope: this
- });
- },
-
onClientError: function(errorObj, response, requestOptions) {
if (errorObj.error.code == 1) {
Deluge.Events.fire('logout');
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---