mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Merge pull request #15483 from owncloud/maintenance-refresh
Fix maintenance refresh interval
This commit is contained in:
commit
4f0769fc07
2 changed files with 3 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ try {
|
|||
if (OC::$CLI) {
|
||||
print_r($values);
|
||||
} else {
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode($values);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue