[DE, PE] tab 'File' didn't select after 'FileMenu' opened programmatically
This commit is contained in:
parent
fe3bd89aa9
commit
ac59e8b46e
|
@ -109,9 +109,8 @@ define([
|
|||
'change:compact' : this.onClickChangeCompact
|
||||
},
|
||||
'FileMenu': {
|
||||
'filemenu:hide': function () {
|
||||
this.toolbar.setTab('');
|
||||
}.bind(this)
|
||||
'menu:hide': this.onFileMenu.bind(this, 'hide'),
|
||||
'menu:show': this.onFileMenu.bind(this, 'show')
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -1425,7 +1424,6 @@ define([
|
|||
},
|
||||
|
||||
onAdvSettingsClick: function(btn, e) {
|
||||
this.toolbar.setTab('file');
|
||||
this.toolbar.fireEvent('file:settings', this);
|
||||
btn.cmpEl.blur();
|
||||
},
|
||||
|
@ -2831,6 +2829,10 @@ define([
|
|||
return !name ? this.toolbar : Backbone.Controller.prototype.getView.apply(this, arguments);
|
||||
},
|
||||
|
||||
onFileMenu: function (opts) {
|
||||
this.toolbar.setTab( opts == 'show' ? 'file' : undefined );
|
||||
},
|
||||
|
||||
textEmptyImgUrl : 'You need to specify image URL.',
|
||||
textWarning : 'Warning',
|
||||
textFontSizeErr : 'The entered value is incorrect.<br>Please enter a numeric value between 1 and 100',
|
||||
|
|
|
@ -200,12 +200,14 @@ define([
|
|||
this.$el.show();
|
||||
this.selectMenu(panel, opts);
|
||||
this.api.asc_enableKeyEvents(false);
|
||||
|
||||
this.fireEvent('menu:show', [this]);
|
||||
},
|
||||
|
||||
hide: function() {
|
||||
this.$el.hide();
|
||||
// if (this.mode.isEdit) DE.getController('Toolbar').DisableToolbar(false);
|
||||
this.fireEvent('filemenu:hide', [this]);
|
||||
this.fireEvent('menu:hide', [this]);
|
||||
// this.api.asc_enableKeyEvents(true);
|
||||
},
|
||||
|
||||
|
|
|
@ -121,9 +121,8 @@ define([
|
|||
'change:compact' : this.onClickChangeCompact
|
||||
},
|
||||
'FileMenu': {
|
||||
'filemenu:hide': function () {
|
||||
this.toolbar.setTab('');
|
||||
}.bind(this)
|
||||
'menu:hide': this.onFileMenu.bind(this, 'hide'),
|
||||
'menu:show': this.onFileMenu.bind(this, 'show')
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -2098,6 +2097,10 @@ define([
|
|||
});
|
||||
},
|
||||
|
||||
onFileMenu: function (opts) {
|
||||
this.toolbar.setTab( opts == 'show' ? 'file' : undefined );
|
||||
},
|
||||
|
||||
textEmptyImgUrl : 'You need to specify image URL.',
|
||||
textWarning : 'Warning',
|
||||
textFontSizeErr : 'The entered value must be more than 0',
|
||||
|
|
|
@ -197,11 +197,13 @@ define([
|
|||
this.$el.show();
|
||||
this.selectMenu(panel);
|
||||
this.api.asc_enableKeyEvents(false);
|
||||
|
||||
this.fireEvent('menu:show', [this]);
|
||||
},
|
||||
|
||||
hide: function() {
|
||||
this.$el.hide();
|
||||
this.fireEvent('filemenu:hide', [this]);
|
||||
this.fireEvent('menu:hide', [this]);
|
||||
this.api.asc_enableKeyEvents(true);
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue