X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2Fbootstrap%2FCard.js;h=f7af0f5fed3c3aaf85f600fb20696672da0a0df2;hb=998b975bc3d277519a30685a44c8526e168c1722;hp=6c6ecf9b4aea942f8be6888071dedb60749e7f4e;hpb=d620b16b999f856ee4b316bedf1f3746d054e96b;p=roojs1 diff --git a/Roo/bootstrap/Card.js b/Roo/bootstrap/Card.js index 6c6ecf9b4a..f7af0f5fed 100644 --- a/Roo/bootstrap/Card.js +++ b/Roo/bootstrap/Card.js @@ -379,6 +379,8 @@ Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component, { if (this.rotateable) { this.el.select('.card-header',true).on('click', this.onToggleRotate, this); } + this.collapsableEl = this.el.select('.roo-collapsable').first(); + this.footerEl = this.el.select('.card-footer').first(); }, getDragData : function(e) @@ -619,8 +621,8 @@ Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component, { onToggleRotate : function(e) { - this.el.select('.roo-collapsable').first().removeClass('show'); - this.el.select('.roo-collapsable').first().removeClass('show'); + this.collapsableEl.removeClass('show'); + this.footerEl.removeClass('d-none'); if (this.rotated) { this.el.select('.roo-collapsable').addClass('show');