mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Delay reloading the page if an ajax error occurs, show notification
This commit is contained in:
parent
34b753baa0
commit
bd9a380d53
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue