Display the sync popup sooner in OO

pull/1/head
yflory 4 years ago
parent 2a12b5f6ed
commit 3b0e6b2b1e

@ -463,6 +463,9 @@ define([
}; };
fixSheets(); fixSheets();
if (!isLockedModal.modal) {
isLockedModal.modal = UI.openCustomModal(isLockedModal.content);
}
ooChannel.ready = false; ooChannel.ready = false;
ooChannel.queue = []; ooChannel.queue = [];
data.callback = function () { data.callback = function () {
@ -2199,6 +2202,9 @@ define([
}; };
var loadCp = function (cp, keepQueue) { var loadCp = function (cp, keepQueue) {
if (!isLockedModal.modal) {
isLockedModal.modal = UI.openCustomModal(isLockedModal.content);
}
loadLastDocument(cp, function () { loadLastDocument(cp, function () {
var file = getFileType(); var file = getFileType();
var type = common.getMetadataMgr().getPrivateData().ooType; var type = common.getMetadataMgr().getPrivateData().ooType;
@ -2681,6 +2687,9 @@ define([
var reloadPopup = false; var reloadPopup = false;
var checkNewCheckpoint = function () { var checkNewCheckpoint = function () {
if (!isLockedModal.modal) {
isLockedModal.modal = UI.openCustomModal(isLockedModal.content);
}
var lastCp = getLastCp(); var lastCp = getLastCp();
loadLastDocument(lastCp, function (err) { loadLastDocument(lastCp, function (err) {
console.error(err); console.error(err);

Loading…
Cancel
Save