projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d620b16
)
Roo/bootstrap/Card.js
author
Alan Knowles
<alan@roojs.com>
Wed, 18 Nov 2020 04:48:48 +0000
(12:48 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 18 Nov 2020 04:48:48 +0000
(12:48 +0800)
Roo/bootstrap/Card.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Card.js
b/Roo/bootstrap/Card.js
index
6c6ecf9
..
f7af0f5
100644
(file)
--- 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);
}
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)
},
getDragData : function(e)
@@
-619,8
+621,8
@@
Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component, {
onToggleRotate : function(e)
{
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');
if (this.rotated) {
this.el.select('.roo-collapsable').addClass('show');