commit
0851ee9036
|
@ -299,7 +299,7 @@ define([
|
||||||
primary: 'yes',
|
primary: 'yes',
|
||||||
callback: _.bind(function (btn) {
|
callback: _.bind(function (btn) {
|
||||||
if (btn == 'yes') {
|
if (btn == 'yes') {
|
||||||
this.api.asc_RemoveAllFootnotes();
|
this.api.asc_RemoveAllFootnotes(true, false);
|
||||||
}
|
}
|
||||||
Common.NotificationCenter.trigger('edit:complete', this.toolbar);
|
Common.NotificationCenter.trigger('edit:complete', this.toolbar);
|
||||||
}, this)
|
}, this)
|
||||||
|
|
|
@ -1002,6 +1002,18 @@ define([
|
||||||
config.msg = this.errorBadImageUrl;
|
config.msg = this.errorBadImageUrl;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case Asc.c_oAscError.ID.SessionAbsolute:
|
||||||
|
config.msg = this.errorSessionAbsolute;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case Asc.c_oAscError.ID.SessionIdle:
|
||||||
|
config.msg = this.errorSessionIdle;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case Asc.c_oAscError.ID.SessionToken:
|
||||||
|
config.msg = this.errorSessionToken;
|
||||||
|
break;
|
||||||
|
|
||||||
case Asc.c_oAscError.ID.DataEncrypted:
|
case Asc.c_oAscError.ID.DataEncrypted:
|
||||||
config.msg = this.errorDataEncrypted;
|
config.msg = this.errorDataEncrypted;
|
||||||
break;
|
break;
|
||||||
|
@ -1561,7 +1573,10 @@ define([
|
||||||
textHasMacros: 'The file contains automatic macros.<br>Do you want to run macros?',
|
textHasMacros: 'The file contains automatic macros.<br>Do you want to run macros?',
|
||||||
textRemember: 'Remember my choice',
|
textRemember: 'Remember my choice',
|
||||||
textYes: 'Yes',
|
textYes: 'Yes',
|
||||||
textNo: 'No'
|
textNo: 'No',
|
||||||
|
errorSessionAbsolute: 'The document editing session has expired. Please reload the page.',
|
||||||
|
errorSessionIdle: 'The document has not been edited for quite a long time. Please reload the page.',
|
||||||
|
errorSessionToken: 'The connection to the server has been interrupted. Please reload the page.'
|
||||||
}
|
}
|
||||||
})(), DE.Controllers.Main || {}))
|
})(), DE.Controllers.Main || {}))
|
||||||
});
|
});
|
|
@ -187,6 +187,9 @@
|
||||||
"DE.Controllers.Main.errorMailMergeSaveFile": "Merge failed.",
|
"DE.Controllers.Main.errorMailMergeSaveFile": "Merge failed.",
|
||||||
"DE.Controllers.Main.errorProcessSaveResult": "Saving is failed.",
|
"DE.Controllers.Main.errorProcessSaveResult": "Saving is failed.",
|
||||||
"DE.Controllers.Main.errorServerVersion": "The editor version has been updated. The page will be reloaded to apply the changes.",
|
"DE.Controllers.Main.errorServerVersion": "The editor version has been updated. The page will be reloaded to apply the changes.",
|
||||||
|
"DE.Controllers.Main.errorSessionAbsolute": "The document editing session has expired. Please reload the page.",
|
||||||
|
"DE.Controllers.Main.errorSessionIdle": "The document has not been edited for quite a long time. Please reload the page.",
|
||||||
|
"DE.Controllers.Main.errorSessionToken": "The connection to the server has been interrupted. Please reload the page.",
|
||||||
"DE.Controllers.Main.errorStockChart": "Incorrect row order. To build a stock chart place the data on the sheet in the following order:<br> opening price, max price, min price, closing price.",
|
"DE.Controllers.Main.errorStockChart": "Incorrect row order. To build a stock chart place the data on the sheet in the following order:<br> opening price, max price, min price, closing price.",
|
||||||
"DE.Controllers.Main.errorUpdateVersion": "The file version has been changed. The page will be reloaded.",
|
"DE.Controllers.Main.errorUpdateVersion": "The file version has been changed. The page will be reloaded.",
|
||||||
"DE.Controllers.Main.errorUpdateVersionOnDisconnect": "Internet connection has been restored, and the file version has been changed.<br>Before you can continue working, you need to download the file or copy its content to make sure nothing is lost, and then reload this page.",
|
"DE.Controllers.Main.errorUpdateVersionOnDisconnect": "Internet connection has been restored, and the file version has been changed.<br>Before you can continue working, you need to download the file or copy its content to make sure nothing is lost, and then reload this page.",
|
||||||
|
|
|
@ -926,6 +926,18 @@ define([
|
||||||
config.msg = this.errorBadImageUrl;
|
config.msg = this.errorBadImageUrl;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case Asc.c_oAscError.ID.SessionAbsolute:
|
||||||
|
config.msg = this.errorSessionAbsolute;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case Asc.c_oAscError.ID.SessionIdle:
|
||||||
|
config.msg = this.errorSessionIdle;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case Asc.c_oAscError.ID.SessionToken:
|
||||||
|
config.msg = this.errorSessionToken;
|
||||||
|
break;
|
||||||
|
|
||||||
case Asc.c_oAscError.ID.DataEncrypted:
|
case Asc.c_oAscError.ID.DataEncrypted:
|
||||||
config.msg = this.errorDataEncrypted;
|
config.msg = this.errorDataEncrypted;
|
||||||
break;
|
break;
|
||||||
|
@ -1507,7 +1519,10 @@ define([
|
||||||
textHasMacros: 'The file contains automatic macros.<br>Do you want to run macros?',
|
textHasMacros: 'The file contains automatic macros.<br>Do you want to run macros?',
|
||||||
textRemember: 'Remember my choice',
|
textRemember: 'Remember my choice',
|
||||||
textYes: 'Yes',
|
textYes: 'Yes',
|
||||||
textNo: 'No'
|
textNo: 'No',
|
||||||
|
errorSessionAbsolute: 'The document editing session has expired. Please reload the page.',
|
||||||
|
errorSessionIdle: 'The document has not been edited for quite a long time. Please reload the page.',
|
||||||
|
errorSessionToken: 'The connection to the server has been interrupted. Please reload the page.'
|
||||||
}
|
}
|
||||||
})(), PE.Controllers.Main || {}))
|
})(), PE.Controllers.Main || {}))
|
||||||
});
|
});
|
|
@ -116,6 +116,9 @@
|
||||||
"PE.Controllers.Main.errorKeyExpire": "Key descriptor expired",
|
"PE.Controllers.Main.errorKeyExpire": "Key descriptor expired",
|
||||||
"PE.Controllers.Main.errorProcessSaveResult": "Saving is failed.",
|
"PE.Controllers.Main.errorProcessSaveResult": "Saving is failed.",
|
||||||
"PE.Controllers.Main.errorServerVersion": "The editor version has been updated. The page will be reloaded to apply the changes.",
|
"PE.Controllers.Main.errorServerVersion": "The editor version has been updated. The page will be reloaded to apply the changes.",
|
||||||
|
"PE.Controllers.Main.errorSessionAbsolute": "The document editing session has expired. Please reload the page.",
|
||||||
|
"PE.Controllers.Main.errorSessionIdle": "The document has not been edited for quite a long time. Please reload the page.",
|
||||||
|
"PE.Controllers.Main.errorSessionToken": "The connection to the server has been interrupted. Please reload the page.",
|
||||||
"PE.Controllers.Main.errorStockChart": "Incorrect row order. To build a stock chart place the data on the sheet in the following order:<br> opening price, max price, min price, closing price.",
|
"PE.Controllers.Main.errorStockChart": "Incorrect row order. To build a stock chart place the data on the sheet in the following order:<br> opening price, max price, min price, closing price.",
|
||||||
"PE.Controllers.Main.errorUpdateVersion": "The file version has been changed. The page will be reloaded.",
|
"PE.Controllers.Main.errorUpdateVersion": "The file version has been changed. The page will be reloaded.",
|
||||||
"PE.Controllers.Main.errorUpdateVersionOnDisconnect": "Internet connection has been restored, and the file version has been changed.<br>Before you can continue working, you need to download the file or copy its content to make sure nothing is lost, and then reload this page.",
|
"PE.Controllers.Main.errorUpdateVersionOnDisconnect": "Internet connection has been restored, and the file version has been changed.<br>Before you can continue working, you need to download the file or copy its content to make sure nothing is lost, and then reload this page.",
|
||||||
|
|
|
@ -1560,6 +1560,12 @@ define([
|
||||||
},
|
},
|
||||||
'command+shift+=,ctrl+shift+=': function(e) {
|
'command+shift+=,ctrl+shift+=': function(e) {
|
||||||
if (me.editMode && !me.toolbar.btnAddCell.isDisabled()) {
|
if (me.editMode && !me.toolbar.btnAddCell.isDisabled()) {
|
||||||
|
var cellinfo = me.api.asc_getCellInfo(),
|
||||||
|
selectionType = cellinfo.asc_getSelectionType();
|
||||||
|
if (selectionType === Asc.c_oAscSelectionType.RangeRow || selectionType === Asc.c_oAscSelectionType.RangeCol) {
|
||||||
|
me.api.asc_insertCells(selectionType === Asc.c_oAscSelectionType.RangeRow ? Asc.c_oAscInsertOptions.InsertRows :Asc.c_oAscInsertOptions.InsertColumns );
|
||||||
|
Common.NotificationCenter.trigger('edit:complete', me.toolbar);
|
||||||
|
} else {
|
||||||
var items = me.toolbar.btnAddCell.menu.items,
|
var items = me.toolbar.btnAddCell.menu.items,
|
||||||
arr = [];
|
arr = [];
|
||||||
for (var i=0; i<4; i++)
|
for (var i=0; i<4; i++)
|
||||||
|
@ -1575,11 +1581,18 @@ define([
|
||||||
}
|
}
|
||||||
})).show();
|
})).show();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
'command+shift+-,ctrl+shift+-': function(e) {
|
'command+shift+-,ctrl+shift+-': function(e) {
|
||||||
if (me.editMode && !me.toolbar.btnDeleteCell.isDisabled()) {
|
if (me.editMode && !me.toolbar.btnDeleteCell.isDisabled()) {
|
||||||
|
var cellinfo = me.api.asc_getCellInfo(),
|
||||||
|
selectionType = cellinfo.asc_getSelectionType();
|
||||||
|
if (selectionType === Asc.c_oAscSelectionType.RangeRow || selectionType === Asc.c_oAscSelectionType.RangeCol) {
|
||||||
|
me.api.asc_deleteCells(selectionType === Asc.c_oAscSelectionType.RangeRow ? Asc.c_oAscDeleteOptions.DeleteRows :Asc.c_oAscDeleteOptions.DeleteColumns );
|
||||||
|
Common.NotificationCenter.trigger('edit:complete', me.toolbar);
|
||||||
|
} else {
|
||||||
var items = me.toolbar.btnDeleteCell.menu.items,
|
var items = me.toolbar.btnDeleteCell.menu.items,
|
||||||
arr = [];
|
arr = [];
|
||||||
for (var i=0; i<4; i++)
|
for (var i=0; i<4; i++)
|
||||||
|
@ -1595,6 +1608,7 @@ define([
|
||||||
}
|
}
|
||||||
})).show();
|
})).show();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue