|
|
@ -283,9 +283,11 @@ define([
|
|
|
|
UI.log(Messages.saved);
|
|
|
|
UI.log(Messages.saved);
|
|
|
|
APP.realtime.onSettle(function () {
|
|
|
|
APP.realtime.onSettle(function () {
|
|
|
|
if (APP.migrate) {
|
|
|
|
if (APP.migrate) {
|
|
|
|
UI.alert("RELOAD", function () { // XXX
|
|
|
|
UI.removeModals();
|
|
|
|
|
|
|
|
UI.alert(Messages.oo_sheetMigration_complete, function () {
|
|
|
|
common.gotoURL();
|
|
|
|
common.gotoURL();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (ev.callback) {
|
|
|
|
if (ev.callback) {
|
|
|
|
return void ev.callback();
|
|
|
|
return void ev.callback();
|
|
|
@ -534,6 +536,11 @@ define([
|
|
|
|
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) {
|
|
|
|
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 () {
|
|
|
|
setTimeout(function () {
|
|
|
|
makeCheckpoint(true);
|
|
|
|
makeCheckpoint(true);
|
|
|
|
}, 1000);
|
|
|
|
}, 1000);
|
|
|
@ -1430,8 +1437,8 @@ define([
|
|
|
|
content.migration = true;
|
|
|
|
content.migration = true;
|
|
|
|
APP.onLocal();
|
|
|
|
APP.onLocal();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
var msg = h('div.alert.alert-warning.cp-burn-after-reading', "PEZPEZPEZ"); // XXX
|
|
|
|
var msg = h('div.alert.alert-warning.cp-burn-after-reading', Messages.oo_sheetMigration_anonymousEditor);
|
|
|
|
$(APP.helpMenu).after(h);
|
|
|
|
$(APP.helpMenu.menu).after(msg);
|
|
|
|
readOnly = true;
|
|
|
|
readOnly = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1500,7 +1507,7 @@ define([
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (wasMigrating && !content.migration && !reloadPopup) {
|
|
|
|
if (wasMigrating && !content.migration && !reloadPopup) {
|
|
|
|
reloadPopup = true;
|
|
|
|
reloadPopup = true;
|
|
|
|
UI.alert("RELOAD pewpew", function () { // XXX
|
|
|
|
UI.alert(Messages.oo_sheetMigration_complete, function () {
|
|
|
|
common.gotoURL();
|
|
|
|
common.gotoURL();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|