From 3b0e6b2b1edc515ef339f2b110429ac88bfdb711 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 20 Apr 2021 17:47:28 +0200 Subject: [PATCH] Display the sync popup sooner in OO --- www/common/onlyoffice/inner.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/www/common/onlyoffice/inner.js b/www/common/onlyoffice/inner.js index dd3c0b5fc..2cbf75ff9 100644 --- a/www/common/onlyoffice/inner.js +++ b/www/common/onlyoffice/inner.js @@ -463,6 +463,9 @@ define([ }; fixSheets(); + if (!isLockedModal.modal) { + isLockedModal.modal = UI.openCustomModal(isLockedModal.content); + } ooChannel.ready = false; ooChannel.queue = []; data.callback = function () { @@ -2199,6 +2202,9 @@ define([ }; var loadCp = function (cp, keepQueue) { + if (!isLockedModal.modal) { + isLockedModal.modal = UI.openCustomModal(isLockedModal.content); + } loadLastDocument(cp, function () { var file = getFileType(); var type = common.getMetadataMgr().getPrivateData().ooType; @@ -2681,6 +2687,9 @@ define([ var reloadPopup = false; var checkNewCheckpoint = function () { + if (!isLockedModal.modal) { + isLockedModal.modal = UI.openCustomModal(isLockedModal.content); + } var lastCp = getLastCp(); loadLastDocument(lastCp, function (err) { console.error(err);