Plugins refactoring.
This commit is contained in:
parent
2aab94e5e9
commit
7af4bc9d7b
|
@ -57,8 +57,6 @@ define([
|
||||||
this.addListeners({
|
this.addListeners({
|
||||||
'Toolbar': {
|
'Toolbar': {
|
||||||
'render:before' : function (toolbar) {
|
'render:before' : function (toolbar) {
|
||||||
me.toolbar = toolbar;
|
|
||||||
|
|
||||||
var appOptions = me.getApplication().getController('Main').appOptions;
|
var appOptions = me.getApplication().getController('Main').appOptions;
|
||||||
|
|
||||||
if ( appOptions.isEdit && !appOptions.isEditMailMerge && !appOptions.isEditDiagram ) {
|
if ( appOptions.isEdit && !appOptions.isEditMailMerge && !appOptions.isEditDiagram ) {
|
||||||
|
@ -175,8 +173,8 @@ define([
|
||||||
arr.push(plugin);
|
arr.push(plugin);
|
||||||
});
|
});
|
||||||
this.api.asc_pluginsRegister('', arr);
|
this.api.asc_pluginsRegister('', arr);
|
||||||
if (this.toolbar && storePlugins.length>0)
|
if (storePlugins.length>0)
|
||||||
this.toolbar.setVisible('plugins', true);
|
Common.NotificationCenter.trigger('tab:visible', 'plugins', true);
|
||||||
},
|
},
|
||||||
|
|
||||||
onAddPlugin: function (model) {
|
onAddPlugin: function (model) {
|
||||||
|
|
Loading…
Reference in a new issue