diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-08 22:46:35 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-08 22:46:35 +0200 |
commit | 4f0769fc0785447e42775dfc9741f9392dd5bf4f (patch) | |
tree | 456e410ff683b12f5e101ea0642b92610175c382 /core | |
parent | f3ef17a963da6611382b0c8267d117498ad8bf7b (diff) | |
parent | 78ec7543d50ff3ab269e4d668730405841038c6b (diff) | |
download | nextcloud-server-4f0769fc0785447e42775dfc9741f9392dd5bf4f.tar.gz nextcloud-server-4f0769fc0785447e42775dfc9741f9392dd5bf4f.zip |
Merge pull request #15483 from owncloud/maintenance-refresh
Fix maintenance refresh interval
Diffstat (limited to 'core')
-rw-r--r-- | core/js/maintenance-check.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/maintenance-check.js b/core/js/maintenance-check.js index 8ca00456fef..061a434214b 100644 --- a/core/js/maintenance-check.js +++ b/core/js/maintenance-check.js @@ -7,14 +7,14 @@ function checkStatus() { 0, location.pathname.indexOf('index.php') ); request.open("GET", ocroot+'status.php', true); - request.send(); request.onreadystatechange = function() { if (request.readyState === 4) { var response = request.responseText; var responseobj = JSON.parse(response); - if (responseobj.maintenance === 'false') { + if (responseobj.maintenance === false) { window.location.reload(); } } }; + request.send(); } |