|
|
@ -1440,11 +1440,16 @@ define([
|
|
|
|
// to be downloaded and decrypted before converting to xlsx
|
|
|
|
// to be downloaded and decrypted before converting to xlsx
|
|
|
|
var downloadImages = {};
|
|
|
|
var downloadImages = {};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var firstOO = true;
|
|
|
|
startOO = function (blob, file, force) {
|
|
|
|
startOO = function (blob, file, force) {
|
|
|
|
if (APP.ooconfig && !force) { return void console.error('already started'); }
|
|
|
|
if (APP.ooconfig && !force) { return void console.error('already started'); }
|
|
|
|
var url = URL.createObjectURL(blob);
|
|
|
|
var url = URL.createObjectURL(blob);
|
|
|
|
var lock = !APP.history && (APP.migrate);
|
|
|
|
var lock = !APP.history && (APP.migrate);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var fromContent = metadataMgr.getPrivateData().fromContent;
|
|
|
|
|
|
|
|
if (!firstOO) { fromContent = undefined; }
|
|
|
|
|
|
|
|
firstOO = false;
|
|
|
|
|
|
|
|
|
|
|
|
// Starting from version 3, we can use the view mode again
|
|
|
|
// Starting from version 3, we can use the view mode again
|
|
|
|
// defined but never used
|
|
|
|
// defined but never used
|
|
|
|
//var mode = (content && content.version > 2 && lock) ? "view" : "edit";
|
|
|
|
//var mode = (content && content.version > 2 && lock) ? "view" : "edit";
|
|
|
@ -1606,6 +1611,11 @@ define([
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (fromContent && !lock && Array.isArray(fromContent.content)) {
|
|
|
|
|
|
|
|
console.warn(fromContent);
|
|
|
|
|
|
|
|
makePatch(fromContent.content);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (APP.isDownload) {
|
|
|
|
if (APP.isDownload) {
|
|
|
|
var bin = getContent();
|
|
|
|
var bin = getContent();
|
|
|
|
if (!supportsXLSX()) {
|
|
|
|
if (!supportsXLSX()) {
|
|
|
|