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