X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=Roo%2Fbootstrap%2FCard.js;h=a445de1dd27a770d7e4371d51b19a72a6228a4fa;hp=6b71f1b988b397e1f31f9afdad7b5dcbf4559f2d;hb=9f24f2af3435ee3b0ee65ccaab0f57c342c76f97;hpb=a2f87a410ec0b30b298c0a3046bb5dcd55848a45 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) {