diff --git a/apps/common/main/lib/component/Button.js b/apps/common/main/lib/component/Button.js index 7b06a4e47..48f6abc36 100644 --- a/apps/common/main/lib/component/Button.js +++ b/apps/common/main/lib/component/Button.js @@ -125,7 +125,11 @@ define([ '<% if ( iconImg ) { %>' + '' + '<% } else { %>' + - ' ' + + '<% if (/svgicon/.test(iconCls)) {' + + 'print(\'\');' + + '} else ' + + 'print(\' \'); %>' + + // ' ' + '<% } %>' + '' + '<%= caption %>' + @@ -182,7 +186,13 @@ define([ template: _.template([ '<% var applyicon = function() { %>', '<% if (iconImg) { print(\'\'); } else { %>', - '<% if (iconCls != "") { print(\' \'); }} %>', + // '<% if (iconCls != "") { print(\' \'); }} %>', + '<% if (iconCls != "") { ' + + ' if (/svgicon/.test(iconCls)) {' + + 'print(\'\');' + + '} else ' + + 'print(\' \'); ' + + '}} %>', '<% } %>', '<% if ( !menu ) { %>', '