Fix Bug 35617.
This commit is contained in:
parent
43fa6a2c96
commit
5c21e657f0
|
@ -110,6 +110,7 @@ define([
|
||||||
var $panel = toolbar.$el.find('#plugins-panel');
|
var $panel = toolbar.$el.find('#plugins-panel');
|
||||||
if ( $panel ) {
|
if ( $panel ) {
|
||||||
this.panelPlugins.renderTo( $panel );
|
this.panelPlugins.renderTo( $panel );
|
||||||
|
this.panelPlugins._onAppReady();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -73,6 +73,7 @@ define([
|
||||||
initialize: function(options) {
|
initialize: function(options) {
|
||||||
_.extend(this, options);
|
_.extend(this, options);
|
||||||
this._locked = false;
|
this._locked = false;
|
||||||
|
this._pluginsIsInited = false;
|
||||||
this._state = {
|
this._state = {
|
||||||
DisabledControls: true
|
DisabledControls: true
|
||||||
};
|
};
|
||||||
|
@ -266,7 +267,10 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
_onAppReady: function (mode) {
|
_onAppReady: function (mode) {
|
||||||
|
if (this._pluginsIsInited) return;
|
||||||
|
|
||||||
var me = this;
|
var me = this;
|
||||||
|
this._pluginsIsInited = (this.storePlugins.length>0);
|
||||||
this.storePlugins.each(function(model) {
|
this.storePlugins.each(function(model) {
|
||||||
var _plugin_btn = model.get('button');
|
var _plugin_btn = model.get('button');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue