Roo/bootstrap/Button.js
authorJulian Knowles <julian@roojs.com>
Mon, 27 Jan 2014 07:50:02 +0000 (15:50 +0800)
committerJulian Knowles <julian@roojs.com>
Mon, 27 Jan 2014 07:50:02 +0000 (15:50 +0800)
Roo/bootstrap/Button.js

index 158644f..66af504 100644 (file)
@@ -82,7 +82,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
             
             if (['default', 'primary', 'success', 'info', 'warning', 'danger', 'link'].indexOf(this.weight) > -1) {
                 
-                cfg.cn[0].cls += ' btn-' + this.weight;
+                cfg.cn[0].cls += this.weight;
             } else {
             
             return cfg;