From 0643f6756d00eff5509bed55b6797d977d768bcb Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 3 Sep 2019 17:36:32 +0300 Subject: [PATCH] [Common] Don't render plugins list --- apps/common/main/lib/controller/Plugins.js | 2 +- apps/common/main/lib/view/Plugins.js | 32 +++++++++++----------- 2 files changed, 17 insertions(+), 17 deletions(-) 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');