From 07e41a0209202e9ccbeb74f89df563ed855004f6 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 29 Nov 2018 10:15:58 +0800 Subject: [PATCH] Roo/bootstrap/Button.js --- Roo/bootstrap/Button.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Roo/bootstrap/Button.js b/Roo/bootstrap/Button.js index 2ea691f595..6c0fa0d291 100644 --- a/Roo/bootstrap/Button.js +++ b/Roo/bootstrap/Button.js @@ -150,7 +150,12 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { 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; + var weight = this.weight == 'default' ? 'secondary' : this.weight; + cfg.cls += ' btn-' + outline + weight; + if (this.weight == 'default') { + // BC + cfg.cls += ' btn-' + this.weight; + } } } else if (this.theme==='glow') { -- 2.39.2