|
|
@ -661,10 +661,8 @@ define([
|
|
|
|
// or if we requested a x.0 version
|
|
|
|
// or if we requested a x.0 version
|
|
|
|
var exists = !Number(s[1]) || messages.length;
|
|
|
|
var exists = !Number(s[1]) || messages.length;
|
|
|
|
var vHashEl;
|
|
|
|
var vHashEl;
|
|
|
|
Messages.oo_deletedVersion = "This version no longer exists in the history."; // XXX
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!privateData.embed) {
|
|
|
|
if (!privateData.embed) {
|
|
|
|
Messages.infobar_versionHash = "You're currently viewing an old version of this document ({0})."; // XXX (duplicate from history branch)
|
|
|
|
|
|
|
|
var vTime = (messages[messages.length - 1] || {}).time;
|
|
|
|
var vTime = (messages[messages.length - 1] || {}).time;
|
|
|
|
var vTimeStr = vTime ? new Date(vTime).toLocaleString()
|
|
|
|
var vTimeStr = vTime ? new Date(vTime).toLocaleString()
|
|
|
|
: 'v' + privateData.ooVersionHash;
|
|
|
|
: 'v' + privateData.ooVersionHash;
|
|
|
@ -1241,7 +1239,7 @@ define([
|
|
|
|
onMigrateRdy.reg(function () {
|
|
|
|
onMigrateRdy.reg(function () {
|
|
|
|
var div = h('div.cp-oo-x2tXls', [
|
|
|
|
var div = h('div.cp-oo-x2tXls', [
|
|
|
|
h('span.fa.fa-spin.fa-spinner'),
|
|
|
|
h('span.fa.fa-spin.fa-spinner'),
|
|
|
|
h('span', Messages.oo_sheetMigration_loading) // XXX tell them that it will take ~ 1min)
|
|
|
|
h('span', Messages.oo_sheetMigration_loading)
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
UI.openCustomModal(UI.dialog.customModal(div, {buttons: []}));
|
|
|
|
UI.openCustomModal(UI.dialog.customModal(div, {buttons: []}));
|
|
|
|
makeCheckpoint(true);
|
|
|
|
makeCheckpoint(true);
|
|
|
@ -1938,7 +1936,7 @@ define([
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var md = Util.clone(metadataMgr.getMetadata());
|
|
|
|
var md = Util.clone(metadataMgr.getMetadata());
|
|
|
|
var snapshots = md.snapshots = md.snapshots || {};
|
|
|
|
var snapshots = md.snapshots = md.snapshots || {};
|
|
|
|
if (snapshots[hash]) { cb('EEXISTS'); return void UI.warn(Messages.error); } // XXX
|
|
|
|
if (snapshots[hash]) { cb('EEXISTS'); return void UI.warn(Messages.snapshot_error_exists); }
|
|
|
|
snapshots[hash] = {
|
|
|
|
snapshots[hash] = {
|
|
|
|
title: title,
|
|
|
|
title: title,
|
|
|
|
time: time
|
|
|
|
time: time
|
|
|
@ -2097,7 +2095,7 @@ define([
|
|
|
|
content.migration = true;
|
|
|
|
content.migration = true;
|
|
|
|
APP.onLocal();
|
|
|
|
APP.onLocal();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
msg = h('div.alert.alert-warning.cp-burn-after-reading', Messages.oo_sheetMigration_anonymousEditor); // XXX update: "anonymous users or viewers"
|
|
|
|
msg = h('div.alert.alert-warning.cp-burn-after-reading', Messages.oo_sheetMigration_anonymousEditor);
|
|
|
|
$(APP.helpMenu.menu).after(msg);
|
|
|
|
$(APP.helpMenu.menu).after(msg);
|
|
|
|
readOnly = true;
|
|
|
|
readOnly = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|