From f5bb8c8ed84a18e26b45b09504f038dc8db3778d Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Mon, 26 Jun 2017 12:19:08 +0300 Subject: [PATCH] [Common] refactoring --- apps/common/main/lib/component/Button.js | 34 ++++++++----------- .../main/resources/less/asc-mixins.less | 12 +++++-- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/apps/common/main/lib/component/Button.js b/apps/common/main/lib/component/Button.js index b9094757f..42856bd49 100644 --- a/apps/common/main/lib/component/Button.js +++ b/apps/common/main/lib/component/Button.js @@ -119,18 +119,20 @@ define([ ], function () { 'use strict'; + var templateBtnIcon = + '<% if ( iconImg ) { %>' + + '' + + '<% } else { %>' + + '<% if (/svgicon/.test(iconCls)) {' + + 'print(\'\');' + + '} else ' + + 'print(\' \'); %>' + + '<% } %>'; + var templateHugeCaption = - ''; @@ -139,11 +141,7 @@ define([ '
' + '' + '