mirror of
https://github.com/nextcloud/server.git
synced 2024-07-28 20:16:02 +02:00
Delay reloading the page if an ajax error occurs, show notification
This commit is contained in:
parent
34b753baa0
commit
bd9a380d53
@ -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 New Issue
Block a user