[PE] Fix Bug 39669
This commit is contained in:
parent
524eaa94f2
commit
9143a576de
|
@ -256,7 +256,6 @@ define([
|
||||||
toolbar.btnPreview.menu.on('item:click', _.bind(this.onPreviewItemClick, this));
|
toolbar.btnPreview.menu.on('item:click', _.bind(this.onPreviewItemClick, this));
|
||||||
toolbar.btnPrint.on('click', _.bind(this.onPrint, this));
|
toolbar.btnPrint.on('click', _.bind(this.onPrint, this));
|
||||||
toolbar.btnSave.on('click', _.bind(this.onSave, this));
|
toolbar.btnSave.on('click', _.bind(this.onSave, this));
|
||||||
toolbar.btnSave.on('disabled', _.bind(this.onBtnChangeState, this, 'save:disabled'));
|
|
||||||
toolbar.btnUndo.on('click', _.bind(this.onUndo, this));
|
toolbar.btnUndo.on('click', _.bind(this.onUndo, this));
|
||||||
toolbar.btnUndo.on('disabled', _.bind(this.onBtnChangeState, this, 'undo:disabled'));
|
toolbar.btnUndo.on('disabled', _.bind(this.onBtnChangeState, this, 'undo:disabled'));
|
||||||
toolbar.btnRedo.on('click', _.bind(this.onRedo, this));
|
toolbar.btnRedo.on('click', _.bind(this.onRedo, this));
|
||||||
|
@ -2008,6 +2007,7 @@ define([
|
||||||
if ( $panel )
|
if ( $panel )
|
||||||
me.toolbar.addTab(tab, $panel, 3);
|
me.toolbar.addTab(tab, $panel, 3);
|
||||||
|
|
||||||
|
me.toolbar.btnSave.on('disabled', _.bind(me.onBtnChangeState, me, 'save:disabled'));
|
||||||
if ( config.isDesktopApp ) {
|
if ( config.isDesktopApp ) {
|
||||||
// hide 'print' and 'save' buttons group and next separator
|
// hide 'print' and 'save' buttons group and next separator
|
||||||
me.toolbar.btnPrint.$el.parents('.group').hide().next().hide();
|
me.toolbar.btnPrint.$el.parents('.group').hide().next().hide();
|
||||||
|
|
Loading…
Reference in a new issue