From 994212108f46561a4993b4f82bd5318c4a7e3e04 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Thu, 16 Mar 2017 12:55:11 +0300 Subject: [PATCH] [Common] apply button's icon from certain image --- apps/common/main/lib/component/Button.js | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/apps/common/main/lib/component/Button.js b/apps/common/main/lib/component/Button.js index a81899ed5..0e7e39fbe 100644 --- a/apps/common/main/lib/component/Button.js +++ b/apps/common/main/lib/component/Button.js @@ -162,19 +162,19 @@ define([ }, template: _.template([ + '<% var applyicon = function() { %>', + '<% if (iconImg) { print(\'\'); } else %>', + '<% if (iconCls != "") { print(\' \'); } %>', + '<% } %>', '<% if ( !menu ) { %>', '', '<% } else if (split == false) {%>', '
', '', @@ -182,9 +182,7 @@ define([ '<% } else { %>', '
', '', '