Fix Bug 35617.

This commit is contained in:
Julia Radzhabova 2017-08-17 10:28:17 +03:00
parent 43fa6a2c96
commit 5c21e657f0
2 changed files with 5 additions and 0 deletions

View file

@ -110,6 +110,7 @@ define([
var $panel = toolbar.$el.find('#plugins-panel');
if ( $panel ) {
this.panelPlugins.renderTo( $panel );
this.panelPlugins._onAppReady();
}
}
},

View file

@ -73,6 +73,7 @@ define([
initialize: function(options) {
_.extend(this, options);
this._locked = false;
this._pluginsIsInited = false;
this._state = {
DisabledControls: true
};
@ -266,7 +267,10 @@ define([
},
_onAppReady: function (mode) {
if (this._pluginsIsInited) return;
var me = this;
this._pluginsIsInited = (this.storePlugins.length>0);
this.storePlugins.each(function(model) {
var _plugin_btn = model.get('button');