Add click handler for details' title

This commit is contained in:
Hadi Nategh 2016-01-20 14:48:04 +00:00
parent cd1692c4a6
commit c4cfb8a8c0
2 changed files with 6 additions and 1 deletions

View File

@ -221,7 +221,9 @@ var et2_details = et2_box.extend(
//Set header title
if (this.options.title)
{
this.title.text(this.options.title);
this.title
.click (function(){self._toggle();})
.text(this.options.title);
}
// Align toggle button left/right

View File

@ -2135,6 +2135,9 @@ body:last-child .blueimp-gallery>.play-pause, .blueimp-gallery>.play-pause{
.et2_details.et2_details_expanded .et2_details_toggle:after {
content: "\2212";
}
.et2_details .et2_details_title {
cursor: pointer;
}
.et2_details.et2_details_expanded .et2_details_title {
display: none;
}