summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-04-08 22:46:35 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-04-08 22:46:35 +0200
commit4f0769fc0785447e42775dfc9741f9392dd5bf4f (patch)
tree456e410ff683b12f5e101ea0642b92610175c382 /core
parentf3ef17a963da6611382b0c8267d117498ad8bf7b (diff)
parent78ec7543d50ff3ab269e4d668730405841038c6b (diff)
downloadnextcloud-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.js4
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();
}