diff options
author | Robin McCorkell <robin@mccorkell.me.uk> | 2016-04-20 16:31:04 +0100 |
---|---|---|
committer | Robin McCorkell <robin@mccorkell.me.uk> | 2016-04-20 16:31:04 +0100 |
commit | bd9a380d53f80264f9be192840ca2473ec0f2982 (patch) | |
tree | 9485609fe2bf320a22c32a90103dca0cc7d05cb0 /core | |
parent | 34b753baa086c5e4957673f2dc78379fabc5c854 (diff) | |
download | nextcloud-server-bd9a380d53f80264f9be192840ca2473ec0f2982.tar.gz nextcloud-server-bd9a380d53f80264f9be192840ca2473ec0f2982.zip |
Delay reloading the page if an ajax error occurs, show notification
Diffstat (limited to 'core')
-rw-r--r-- | core/js/js.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/js/js.js b/core/js/js.js index 188c15c5db5..5deb2a23610 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; } |