MINOR Allow expanding a collapsed panel by a click on the visible surface

This commit is contained in:
Ingo Schommer 2012-02-14 21:46:50 +01:00
parent 2acce7b632
commit 060e110481

View File

@ -104,6 +104,13 @@
}
});
$('.cms-panel.collapsed').entwine({
onclick: function(e) {
this.expandPanel();
e.preventDefault();
}
});
$('.cms-panel *').entwine({
getPanel: function() {
return this.parents('.cms-panel:first');