Roo/bootstrap/Button.js
authorAlan Knowles <alan@roojs.com>
Thu, 15 May 2014 09:26:48 +0000 (17:26 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 15 May 2014 09:26:48 +0000 (17:26 +0800)
Roo/bootstrap/Button.js

index 19e15ee..dc1b31f 100644 (file)
@@ -122,9 +122,9 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
         if (this.theme==='default') {
             cfg.cls = 'btn roo-button';
             
-            if (this.parentType != 'Navbar') {
-                this.weight = this.weight.length ?  this.weight : 'default';
-            }
+            //if (this.parentType != 'Navbar') {
+            this.weight = this.weight.length ?  this.weight : 'default';
+            //}
             if (['default', 'primary', 'success', 'info', 'warning', 'danger', 'link'].indexOf(this.weight) > -1) {
                 
                 cfg.cls += ' btn-' + this.weight;