From c9b84281067b901432daf5704da9f84ffa5a5de4 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Tue, 11 Aug 2009 23:58:19 +0000 Subject: [PATCH] change onLogout to logout --- deluge/ui/web/js/Deluge.Login.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/deluge/ui/web/js/Deluge.Login.js b/deluge/ui/web/js/Deluge.Login.js index 23e55408b..1cd5f7408 100644 --- a/deluge/ui/web/js/Deluge.Login.js +++ b/deluge/ui/web/js/Deluge.Login.js @@ -87,6 +87,16 @@ Copyright: }) }, + 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 @@ Copyright: }); }, - 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');