Roo/bootstrap/Button.js
authorEdward <edward@roojs.com>
Mon, 31 Mar 2014 10:32:52 +0000 (18:32 +0800)
committerEdward <edward@roojs.com>
Mon, 31 Mar 2014 10:32:52 +0000 (18:32 +0800)
Roo/bootstrap/Button.js

index b74cbdb..7b8ce03 100644 (file)
@@ -192,17 +192,16 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
         }
         
         if (this.badge) {
-//            cfg.html += ' ';
-//            
-//            cfg.tag = 'a';
-//            
-//            cfg.cls=cfg.cls;
-//            
-//            cfg.href=this.href;
+            cfg.html += ' ';
+            
+            cfg.tag = 'a';
+            
+            cfg.cls=cfg.cls;
+            
+            cfg.href=this.href;
             
             cfg.cn = [
-                
-                cfg.cn,
+                cfg.html,
                 {
                     tag: 'span',
                     cls: 'badge',