mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-04-07 14:06:16 +08:00
[wopi] Fix bug with infinity loader after OutdatedVersion dialog
This commit is contained in:
@ -250,6 +250,10 @@ div {
|
||||
innerAlert(event.data);
|
||||
};
|
||||
|
||||
var onOutdatedVersion = function () {
|
||||
window.location.reload();
|
||||
};
|
||||
|
||||
var getWopiFileUrl = function(fileInfo, userAuth) {
|
||||
let url;
|
||||
if (fileInfo.FileUrl) {
|
||||
@ -382,6 +386,7 @@ div {
|
||||
'onRequestEditRights': fileInfo.EditModePostMessage || fileInfo.HostEditUrl ? onRequestEditRights : undefined,
|
||||
'onRequestSaveAs': customizationSaveAs ? onRequestSaveAs : undefined,
|
||||
"onError": onError,
|
||||
"onOutdatedVersion": onOutdatedVersion,
|
||||
"onRequestClose": customizationClose ? onRequestClose : undefined,
|
||||
"onRequestRename": fileInfo.SupportsRename && fileInfo.UserCanRename ? onRequestRename : undefined,
|
||||
"onRequestSharingSettings": fileInfo.FileSharingPostMessage || fileInfo.FileSharingUrl ? onRequestSharingSettings : undefined,
|
||||
|
||||
Reference in New Issue
Block a user