[SSE] Fix saving of print settings
This commit is contained in:
parent
262a6dec21
commit
9186805225
|
@ -419,25 +419,25 @@ define([
|
||||||
|
|
||||||
querySavePrintSettings: function(print) {
|
querySavePrintSettings: function(print) {
|
||||||
if ( this.checkMargins(this.printSettings) ) {
|
if ( this.checkMargins(this.printSettings) ) {
|
||||||
|
var view = SSE.getController('Toolbar').getView('Toolbar');
|
||||||
this.savePageOptions(this.printSettings);
|
this.savePageOptions(this.printSettings);
|
||||||
this._isPrint = print;
|
this._isPrint = print;
|
||||||
this.printSettings.applySettings();
|
this.printSettings.applySettings();
|
||||||
|
|
||||||
if (print) {
|
var printType = this.printSettings.getRange();
|
||||||
var view = SSE.getController('Toolbar').getView('Toolbar');
|
this.adjPrintParams.asc_setPrintType(printType);
|
||||||
var printType = this.printSettings.getRange();
|
this.adjPrintParams.asc_setPageOptionsMap(this._changedProps);
|
||||||
this.adjPrintParams.asc_setPrintType(printType);
|
this.adjPrintParams.asc_setIgnorePrintArea(this.printSettings.getIgnorePrintArea());
|
||||||
this.adjPrintParams.asc_setPageOptionsMap(this._changedProps);
|
Common.localStorage.setItem("sse-print-settings-range", printType);
|
||||||
this.adjPrintParams.asc_setIgnorePrintArea(this.printSettings.getIgnorePrintArea());
|
|
||||||
Common.localStorage.setItem("sse-print-settings-range", printType);
|
|
||||||
|
|
||||||
|
if (print) {
|
||||||
var opts = new Asc.asc_CDownloadOptions(null, Common.Utils.isChrome || Common.Utils.isOpera || Common.Utils.isGecko && Common.Utils.firefoxVersion>86);
|
var opts = new Asc.asc_CDownloadOptions(null, Common.Utils.isChrome || Common.Utils.isOpera || Common.Utils.isGecko && Common.Utils.firefoxVersion>86);
|
||||||
opts.asc_setAdvancedOptions(this.adjPrintParams);
|
opts.asc_setAdvancedOptions(this.adjPrintParams);
|
||||||
this.api.asc_Print(opts);
|
this.api.asc_Print(opts);
|
||||||
Common.NotificationCenter.trigger('edit:complete', view);
|
|
||||||
|
|
||||||
this._isPrint = false;
|
this._isPrint = false;
|
||||||
}
|
}
|
||||||
|
Common.NotificationCenter.trigger('edit:complete', view);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue