mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-04-07 14:06:16 +08:00
[SSE] Save page options before printing
This commit is contained in:
@ -196,13 +196,7 @@ define([
|
||||
},
|
||||
|
||||
savePageOptions: function(panel) {
|
||||
var wc = this.api.asc_getWorksheetsCount(),
|
||||
index = -1;
|
||||
|
||||
while (++index < wc) {
|
||||
if (this._changedProps[index])
|
||||
this.api.asc_setPageOptions(this._changedProps[index], index);
|
||||
}
|
||||
this.api.asc_savePagePrintOptions(this._changedProps);
|
||||
Common.NotificationCenter.trigger('page:settings');
|
||||
},
|
||||
|
||||
@ -249,6 +243,7 @@ define([
|
||||
|
||||
var printtype = this.printSettingsDlg.getRange();
|
||||
this.adjPrintParams.asc_setPrintType(printtype);
|
||||
this.adjPrintParams.asc_setPageOptionsMap(this._changedProps);
|
||||
Common.localStorage.setItem("sse-print-settings-range", printtype);
|
||||
|
||||
if ( this.printSettingsDlg.type=='print' )
|
||||
|
||||
Reference in New Issue
Block a user