Roo/bootstrap/Button.js
authorJulian Knowles <julian@roojs.com>
Mon, 27 Jan 2014 10:48:56 +0000 (18:48 +0800)
committerJulian Knowles <julian@roojs.com>
Mon, 27 Jan 2014 10:48:56 +0000 (18:48 +0800)
Roo/bootstrap/Button.js

index 3387191..94cac19 100644 (file)
@@ -103,7 +103,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
             if (this.parentType != 'Navbar') {
                 this.weight = this.weight.length ?  this.weight : 'default';
             }
-            if (['default', 'primary', 'success', 'info', 'warning', 'danger', 'link'].indexOf(this.weight) > -1) {
+            if (['default', 'primary', 'success', 'info', 'warning', 'danger', 'link'].indexOf(this.weight) > -1&&this.theme===false) {
                 
                 cfg.cls += ' btn-' + this.weight;
             }