mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 09:28:41 +00:00
change onLogout to logout
This commit is contained in:
parent
2c65d21b0b
commit
c9b8428106
1 changed files with 10 additions and 10 deletions
|
@ -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) {
|
show: function(skipCheck) {
|
||||||
if (this.firstShow) {
|
if (this.firstShow) {
|
||||||
Deluge.Client.on('error', this.onClientError, this);
|
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) {
|
onClientError: function(errorObj, response, requestOptions) {
|
||||||
if (errorObj.error.code == 1) {
|
if (errorObj.error.code == 1) {
|
||||||
Deluge.Events.fire('logout');
|
Deluge.Events.fire('logout');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue