summaryrefslogtreecommitdiffstats
path: root/core/js/maintenance-check.js
Commit message (Collapse)AuthorAgeFilesLines
* Use OC.webroot instead of calculating the URLLukas Reschke2015-05-111-4/+1
| | | | | | Calculating the URL is error-prone as it doesn't work when for example `public.php` is requested and might even be harmful as it could leak sensitive information. Since `oc.js` is even available when maintenance mode is available it is better to use the global `OC.webroot` that is not controlled by any user.
* Fix maintenance refresh intervalMorris Jobke2015-04-081-2/+2
| | | | | | * fix XMLHttpRequest - send after callback is registered * check for correct type of value - it's a boolean * return correct content-type in status.php
* Refresh if maintenance mode is overkondou2014-09-091-0/+20
Using status.php for this. I modified status.php to also show, whether we're in maintenance. Checks every 20 seconds if maintenance is over, if yes: reload.