mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Allow expanding a collapsed panel by a click on the visible surface
This commit is contained in:
parent
2acce7b632
commit
060e110481
@ -104,6 +104,13 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('.cms-panel.collapsed').entwine({
|
||||||
|
onclick: function(e) {
|
||||||
|
this.expandPanel();
|
||||||
|
e.preventDefault();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
$('.cms-panel *').entwine({
|
$('.cms-panel *').entwine({
|
||||||
getPanel: function() {
|
getPanel: function() {
|
||||||
return this.parents('.cms-panel:first');
|
return this.parents('.cms-panel:first');
|
||||||
|
Loading…
Reference in New Issue
Block a user