[Common] debug for 'preview' mode

This commit is contained in:
Maxim Kadushkin 2017-09-07 17:55:30 +03:00
parent 9e5c7a8a90
commit 41fd7a1bce

View file

@ -175,15 +175,18 @@ define([
onAddPlugin: function (model) {
var me = this;
if ( me.$toolbarPanelPlugins ) {
var btn = me.panelPlugins.createPluginButton(model);
var _group = $('> .group', me.$toolbarPanelPlugins);
var $slot = $('<span class="slot"></span>').appendTo(_group);
btn.render($slot);
}
},
onResetPlugins: function (collection) {
var me = this;
if ( me.$toolbarPanelPlugins ) {
me.$toolbarPanelPlugins.empty();
var _group = $('<div class="group"></div>');
@ -193,6 +196,7 @@ define([
});
_group.appendTo(me.$toolbarPanelPlugins);
}
},
onSelectPlugin: function(picker, item, record, e){