diff --git a/apps/common/main/lib/controller/Plugins.js b/apps/common/main/lib/controller/Plugins.js index cb4c0eae6..c55a79656 100644 --- a/apps/common/main/lib/controller/Plugins.js +++ b/apps/common/main/lib/controller/Plugins.js @@ -172,7 +172,7 @@ define([ }, onAfterRender: function(panelPlugins) { - panelPlugins.viewPluginsList.on('item:click', _.bind(this.onSelectPlugin, this)); + panelPlugins.viewPluginsList && panelPlugins.viewPluginsList.on('item:click', _.bind(this.onSelectPlugin, this)); this.bindViewEvents(this.panelPlugins, this.events); var me = this; Common.NotificationCenter.on({ diff --git a/apps/common/main/lib/view/Plugins.js b/apps/common/main/lib/view/Plugins.js index 36c163b9b..90a615f47 100644 --- a/apps/common/main/lib/view/Plugins.js +++ b/apps/common/main/lib/view/Plugins.js @@ -88,22 +88,22 @@ define([ el && (this.$el = $(el)); this.$el.html(this.template({scope: this})); - this.viewPluginsList = new Common.UI.DataView({ - el: $('#plugins-list'), - store: this.storePlugins, - enableKeyEvents: false, - itemTemplate: _.template([ - '
', - '
1) ? 1 : 0) + (variations[currentVariation].get("icons").length>2 ? 2 : 0)] %>);">
', - '<% if (variations.length>1) { %>', - '
', - '<% } %>', - '<%= name %>', - '
' - ].join('')) - }); - this.lockedControls.push(this.viewPluginsList); - this.viewPluginsList.cmpEl.off('click'); + // this.viewPluginsList = new Common.UI.DataView({ + // el: $('#plugins-list'), + // store: this.storePlugins, + // enableKeyEvents: false, + // itemTemplate: _.template([ + // '
', + // '
1) ? 1 : 0) + (variations[currentVariation].get("icons").length>2 ? 2 : 0)] %>);">
', + // '<% if (variations.length>1) { %>', + // '
', + // '<% } %>', + // '<%= name %>', + // '
' + // ].join('')) + // }); + // this.lockedControls.push(this.viewPluginsList); + // this.viewPluginsList.cmpEl.off('click'); this.pluginName = $('#current-plugin-header label'); this.pluginsPanel = $('#plugins-box');