Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRobin McCorkell <robin@mccorkell.me.uk>2016-04-20 18:31:04 +0300
committerVincent Petry <pvince81@owncloud.com>2016-06-08 18:32:54 +0300
commit40f066ab6d578a4ad28452596b0d0d82bfcbef88 (patch)
treebf73f30fd8a3ba65d73d124aa64ae9e30657dd0f /core
parent7f3f06cdd9f6ae8c27a96bd5bfd81482c404c511 (diff)
Delay reloading the page if an ajax error occurs, show notification
Diffstat (limited to 'core')
-rw-r--r--core/js/js.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/js/js.js b/core/js/js.js
index b74775a935f..be913c6f04c 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -752,7 +752,8 @@ var OC={
// sometimes "beforeunload" happens later, so need to defer the reload a bit
setTimeout(function() {
if (!self._userIsNavigatingAway && !self._reloadCalled) {
- OC.reload();
+ OC.Notification.show(t('core', 'Problem loading page, reloading in 5 seconds'));
+ setTimeout(OC.reload, 5000);
// only call reload once
self._reloadCalled = true;
}