diff options
author | Robin McCorkell <robin@mccorkell.me.uk> | 2016-04-20 16:31:04 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-06-08 17:32:54 +0200 |
commit | 40f066ab6d578a4ad28452596b0d0d82bfcbef88 (patch) | |
tree | bf73f30fd8a3ba65d73d124aa64ae9e30657dd0f /core | |
parent | 7f3f06cdd9f6ae8c27a96bd5bfd81482c404c511 (diff) | |
download | nextcloud-server-40f066ab6d578a4ad28452596b0d0d82bfcbef88.tar.gz nextcloud-server-40f066ab6d578a4ad28452596b0d0d82bfcbef88.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 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; } |