diff --git a/apps/common/main/lib/component/Button.js b/apps/common/main/lib/component/Button.js index 0e7e39fbe..5ad4511c2 100644 --- a/apps/common/main/lib/component/Button.js +++ b/apps/common/main/lib/component/Button.js @@ -163,8 +163,8 @@ define([ template: _.template([ '<% var applyicon = function() { %>', - '<% if (iconImg) { print(\'\'); } else %>', - '<% if (iconCls != "") { print(\' \'); } %>', + '<% if (iconImg) { print(\'\'); } else { %>', + '<% if (iconCls != "") { print(\' \'); }} %>', '<% } %>', '<% if ( !menu ) { %>', '