From: Alan Knowles Date: Thu, 17 Sep 2020 05:26:10 +0000 (+0800) Subject: Roo/bootstrap/Card.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=9f24f2af3435ee3b0ee65ccaab0f57c342c76f97 Roo/bootstrap/Card.js --- diff --git a/Roo/bootstrap/Card.js b/Roo/bootstrap/Card.js index 6b71f1b988..a445de1dd2 100644 --- a/Roo/bootstrap/Card.js +++ b/Roo/bootstrap/Card.js @@ -102,6 +102,8 @@ Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component, { cls += ' d' + (v.length ? '-' : '') + v + '-' + t['margin' + (v.length ? '_' : '') + v].length } }); + + // more generic support? if (this.hidden) { cls += ' d-none'; } @@ -148,9 +150,7 @@ Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component, { cfg.cls += this.layoutCls(); - if (this.hidden) { - cfg.cls += ' hidden'; - } + if (this.alert && ["success","info","warning", "danger"].indexOf(this.alert) > -1) {