[Common] Don't render plugins list
This commit is contained in:
parent
374f7d122f
commit
0643f6756d
|
@ -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({
|
||||
|
|
|
@ -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([
|
||||
'<div id="<%= id %>" class="item-plugins" style="display: <% if (visible) {%> block; <%} else {%> none; <% } %>">',
|
||||
'<div class="plugin-icon" style="background-image: url(' + '<%= baseUrl %>' + '<%= variations[currentVariation].get("icons")[((window.devicePixelRatio > 1) ? 1 : 0) + (variations[currentVariation].get("icons").length>2 ? 2 : 0)] %>);"></div>',
|
||||
'<% if (variations.length>1) { %>',
|
||||
'<div class="plugin-caret img-commonctrl"></div>',
|
||||
'<% } %>',
|
||||
'<%= name %>',
|
||||
'</div>'
|
||||
].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([
|
||||
// '<div id="<%= id %>" class="item-plugins" style="display: <% if (visible) {%> block; <%} else {%> none; <% } %>">',
|
||||
// '<div class="plugin-icon" style="background-image: url(' + '<%= baseUrl %>' + '<%= variations[currentVariation].get("icons")[((window.devicePixelRatio > 1) ? 1 : 0) + (variations[currentVariation].get("icons").length>2 ? 2 : 0)] %>);"></div>',
|
||||
// '<% if (variations.length>1) { %>',
|
||||
// '<div class="plugin-caret img-commonctrl"></div>',
|
||||
// '<% } %>',
|
||||
// '<%= name %>',
|
||||
// '</div>'
|
||||
// ].join(''))
|
||||
// });
|
||||
// this.lockedControls.push(this.viewPluginsList);
|
||||
// this.viewPluginsList.cmpEl.off('click');
|
||||
|
||||
this.pluginName = $('#current-plugin-header label');
|
||||
this.pluginsPanel = $('#plugins-box');
|
||||
|
|
Loading…
Reference in a new issue