Fix race condition onlyoffice
This commit is contained in:
parent
03ad3218de
commit
47e3cffde7
@ -535,16 +535,6 @@ define([
|
|||||||
type: "documentOpen",
|
type: "documentOpen",
|
||||||
data: {"type":"open","status":"ok","data":{"Editor.bin":obj.openCmd.url}}
|
data: {"type":"open","status":"ok","data":{"Editor.bin":obj.openCmd.url}}
|
||||||
});
|
});
|
||||||
if (APP.migrate && !readOnly) {
|
|
||||||
var div = h('div.cp-oo-x2tXls', [
|
|
||||||
h('span.fa.fa-spin.fa-spinner'),
|
|
||||||
h('span', Messages.oo_sheetMigration_loading)
|
|
||||||
]);
|
|
||||||
UI.openCustomModal(UI.dialog.customModal(div, {buttons: []}));
|
|
||||||
setTimeout(function () {
|
|
||||||
makeCheckpoint(true);
|
|
||||||
}, 1000);
|
|
||||||
}
|
|
||||||
// Update current index
|
// Update current index
|
||||||
var last = ooChannel.queue.pop();
|
var last = ooChannel.queue.pop();
|
||||||
if (last) { ooChannel.lastHash = last.hash; }
|
if (last) { ooChannel.lastHash = last.hash; }
|
||||||
@ -786,6 +776,18 @@ define([
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"onDocumentReady": function () {
|
||||||
|
if (APP.migrate && !readOnly) {
|
||||||
|
var div = h('div.cp-oo-x2tXls', [
|
||||||
|
h('span.fa.fa-spin.fa-spinner'),
|
||||||
|
h('span', Messages.oo_sheetMigration_loading)
|
||||||
|
]);
|
||||||
|
UI.openCustomModal(UI.dialog.customModal(div, {buttons: []}));
|
||||||
|
setTimeout(function () {
|
||||||
|
makeCheckpoint(true);
|
||||||
|
}, 1000);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
window.onbeforeunload = function () {
|
window.onbeforeunload = function () {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user