Merge branch 'develop' into feature/sse-header-footer
This commit is contained in:
commit
21e2fbe0cf
|
@ -1493,7 +1493,7 @@ define([
|
||||||
onBeforeUnload: function() {
|
onBeforeUnload: function() {
|
||||||
Common.localStorage.save();
|
Common.localStorage.save();
|
||||||
|
|
||||||
var isEdit = this.permissions.edit !== false && this.editorConfig.mode !== 'view' && this.editorConfig.mode !== 'editdiagram';
|
var isEdit = this.permissions.edit !== false && this.editorConfig.mode !== 'view' && this.editorConfig.mode !== 'editdiagram' && this.editorConfig.mode !== 'editmerge';
|
||||||
if (isEdit && this.api.asc_isDocumentModified()) {
|
if (isEdit && this.api.asc_isDocumentModified()) {
|
||||||
var me = this;
|
var me = this;
|
||||||
this.api.asc_stopSaving();
|
this.api.asc_stopSaving();
|
||||||
|
|
|
@ -136,7 +136,7 @@ define([
|
||||||
if (item)
|
if (item)
|
||||||
panel.cmbPaperSize.setValue(item.get('value'));
|
panel.cmbPaperSize.setValue(item.get('value'));
|
||||||
else
|
else
|
||||||
panel.cmbPaperSize.setValue('Custom (' + w +' x ' + h + ')');
|
panel.cmbPaperSize.setValue(this.txtCustom + ' (' + w +' x ' + h + ')');
|
||||||
|
|
||||||
var fitwidth = opt.asc_getFitToWidth(),
|
var fitwidth = opt.asc_getFitToWidth(),
|
||||||
fitheight = opt.asc_getFitToHeight();
|
fitheight = opt.asc_getFitToHeight();
|
||||||
|
@ -346,6 +346,7 @@ define([
|
||||||
|
|
||||||
warnCheckMargings: 'Margins are incorrect',
|
warnCheckMargings: 'Margins are incorrect',
|
||||||
strAllSheets: 'All Sheets',
|
strAllSheets: 'All Sheets',
|
||||||
textWarning: 'Warning'
|
textWarning: 'Warning',
|
||||||
|
txtCustom: 'Custom'
|
||||||
}, SSE.Controllers.Print || {}));
|
}, SSE.Controllers.Print || {}));
|
||||||
});
|
});
|
|
@ -546,6 +546,7 @@
|
||||||
"SSE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.",
|
"SSE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.",
|
||||||
"SSE.Controllers.Print.strAllSheets": "All Sheets",
|
"SSE.Controllers.Print.strAllSheets": "All Sheets",
|
||||||
"SSE.Controllers.Print.textWarning": "Warning",
|
"SSE.Controllers.Print.textWarning": "Warning",
|
||||||
|
"SSE.Controllers.Print.txtCustom": "Custom",
|
||||||
"SSE.Controllers.Print.warnCheckMargings": "Margins are incorrect",
|
"SSE.Controllers.Print.warnCheckMargings": "Margins are incorrect",
|
||||||
"SSE.Controllers.Statusbar.errorLastSheet": "Workbook must have at least one visible worksheet.",
|
"SSE.Controllers.Statusbar.errorLastSheet": "Workbook must have at least one visible worksheet.",
|
||||||
"SSE.Controllers.Statusbar.errorRemoveSheet": "Cannot delete the worksheet.",
|
"SSE.Controllers.Statusbar.errorRemoveSheet": "Cannot delete the worksheet.",
|
||||||
|
|
Loading…
Reference in a new issue