[SSE] Fix bug 56326
This commit is contained in:
parent
aad4424ed8
commit
9d0e5525a6
|
@ -115,6 +115,7 @@ define([
|
||||||
this.api = o;
|
this.api = o;
|
||||||
this.api.asc_registerCallback('asc_onSheetsChanged', _.bind(this.updateSheetsInfo, this));
|
this.api.asc_registerCallback('asc_onSheetsChanged', _.bind(this.updateSheetsInfo, this));
|
||||||
this.api.asc_registerCallback('asc_onPrintPreviewSheetChanged', _.bind(this.onApiChangePreviewSheet, this));
|
this.api.asc_registerCallback('asc_onPrintPreviewSheetChanged', _.bind(this.onApiChangePreviewSheet, this));
|
||||||
|
this.api.asc_registerCallback('asc_onUpdateDocumentProps', _.bind(this.updateDocumentProps, this));
|
||||||
},
|
},
|
||||||
|
|
||||||
updateSheetsInfo: function() {
|
updateSheetsInfo: function() {
|
||||||
|
@ -746,6 +747,13 @@ define([
|
||||||
this.printSettings.btnNextPage.setDisabled(curPage > pageCount - 2);
|
this.printSettings.btnNextPage.setDisabled(curPage > pageCount - 2);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
updateDocumentProps: function (index) {
|
||||||
|
if (this._isPreviewVisible) {
|
||||||
|
this._changedProps[index] = this.api.asc_getPageOptions(index);
|
||||||
|
this.updatePreview();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
warnCheckMargings: 'Margins are incorrect',
|
warnCheckMargings: 'Margins are incorrect',
|
||||||
strAllSheets: 'All Sheets',
|
strAllSheets: 'All Sheets',
|
||||||
textWarning: 'Warning',
|
textWarning: 'Warning',
|
||||||
|
|
Loading…
Reference in a new issue