[SSE] Fix print from header

This commit is contained in:
Julia Radzhabova 2019-10-02 17:52:54 +03:00
parent 0070450272
commit f92715145e

View file

@ -61,6 +61,8 @@ define([
'changerange': _.bind(this.onChangeRange,this)
}
});
Common.NotificationCenter.on('print', _.bind(this.openPrintSettings, this, 'print'));
Common.NotificationCenter.on('download:settings', _.bind(this.openPrintSettings, this, 'download'));
},
onLaunch: function() {
@ -70,8 +72,6 @@ define([
onAfterRender: function(view) {
this.printSettings.cmbSheet.on('selected', _.bind(this.comboSheetsChange, this, this.printSettings));
this.printSettings.btnOk.on('click', _.bind(this.querySavePrintSettings, this));
Common.NotificationCenter.on('print', _.bind(this.openPrintSettings, this, 'print'));
Common.NotificationCenter.on('download:settings', _.bind(this.openPrintSettings, this, 'download'));
this.registerControlEvents(this.printSettings);
},