From b47b9c15fc689837ae134ed4d7d368a25f7d3205 Mon Sep 17 00:00:00 2001 From: Edward Date: Mon, 31 Mar 2014 18:52:56 +0800 Subject: [PATCH] Roo/bootstrap/Button.js --- Roo/bootstrap/Button.js | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/Roo/bootstrap/Button.js b/Roo/bootstrap/Button.js index a2267f9942..d78bde9228 100644 --- a/Roo/bootstrap/Button.js +++ b/Roo/bootstrap/Button.js @@ -200,12 +200,17 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { cfg.href=this.href; + if(this.glyphicon){ + cfg.cn = [ + { + tag: 'span', + cls: 'glyphicon glyphicon-' + this.glyphicon, + html: this.html + } + ]; + } + cfg.cn = [ - { - tag: 'span', - cls: 'glyphicon glyphicon-' + this.glyphicon - - }, { tag: 'span', cls: 'badge', @@ -213,7 +218,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { } ]; -// cfg.html=''; + cfg.html=''; } if (cfg.tag !== 'a' && this.href !== '') { -- 2.39.2