Roo/bootstrap/Button.js
authorAlan Knowles <alan@roojs.com>
Thu, 29 Nov 2018 02:14:44 +0000 (10:14 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 29 Nov 2018 02:14:44 +0000 (10:14 +0800)
Roo/bootstrap/Button.js

index a578c6e..2ea691f 100644 (file)
@@ -147,7 +147,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', 'secondary', 'success', 'info', 'warning', 'danger', 'link'].indexOf(this.weight) > -1) {
                 
                 var outline = this.outline || this.weight == 'default' ? 'outline-' : '';
                 cfg.cls += ' btn-' + outline + this.weight;