From 8fe9914a818dc7a52fd59a29536e89f07301fe58 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 16 Aug 2017 17:40:59 +0300 Subject: [PATCH] Use new icons for plugins. --- apps/common/main/lib/view/Plugins.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/apps/common/main/lib/view/Plugins.js b/apps/common/main/lib/view/Plugins.js index beb354183..774a92e4c 100644 --- a/apps/common/main/lib/view/Plugins.js +++ b/apps/common/main/lib/view/Plugins.js @@ -95,7 +95,7 @@ define([ enableKeyEvents: false, itemTemplate: _.template([ '
', - '
1) ? 1 : 0] %>);">
', + '
1) ? 1 : 0) + (variations[currentVariation].get("icons").length>2 ? 2 : 0)] %>);">
', '<% if (variations.length>1) { %>', '
', '<% } %>', @@ -149,10 +149,11 @@ define([ var me = this; var _group = $('
'); this.storePlugins.each(function (model) { - var modes = model.get('variations'); - var guid = model.get('guid'); - var _icon_url = model.get('baseUrl') + modes[model.get('currentVariation')].get('icons')[(window.devicePixelRatio > 1) ? 1 : 0]; - var btn = new Common.UI.Button({ + var modes = model.get('variations'), + guid = model.get('guid'), + icons = modes[model.get('currentVariation')].get('icons'), + _icon_url = model.get('baseUrl') + icons[((window.devicePixelRatio > 1) ? 1 : 0) + (icons.length>2 ? 2 : 0)], + btn = new Common.UI.Button({ cls: 'btn-toolbar x-huge icon-top', iconImg: _icon_url, caption: model.get('name'),