Browse Source

Merge pull request #7964 from Chocobo1/typeError

[WebUI] Fix logout behavior
adaptive-webui-19844
sledgehammer999 7 years ago committed by GitHub
parent
commit
2124ef261a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/webui/www/public/scripts/client.js
  2. 2
      src/webui/www/public/scripts/mocha-init.js

4
src/webui/www/public/scripts/client.js

@ -280,7 +280,9 @@ window.addEvent('load', function () {
noCache : true, noCache : true,
method : 'get', method : 'get',
onFailure : function () { onFailure : function () {
$('error_div').set('html', 'QBT_TR(qBittorrent client is not reachable)QBT_TR[CONTEXT=HttpServer]'); var errorDiv = $('error_div');
if (errorDiv)
errorDiv.set('html', 'QBT_TR(qBittorrent client is not reachable)QBT_TR[CONTEXT=HttpServer]');
clearTimeout(syncMainDataTimer); clearTimeout(syncMainDataTimer);
syncMainDataTimer = syncMainData.delay(2000); syncMainDataTimer = syncMainData.delay(2000);
}, },

2
src/webui/www/public/scripts/mocha-init.js

@ -612,7 +612,7 @@ initializeWindows = function() {
new Event(e).stop(); new Event(e).stop();
new Request({ new Request({
url: 'logout', url: 'logout',
method: 'get', method: 'post',
onSuccess: function() { onSuccess: function() {
window.location.reload(); window.location.reload();
} }

Loading…
Cancel
Save