Skip to content
Snippets Groups Projects
Commit 5688552a authored by Pregmodder's avatar Pregmodder
Browse files

Merge remote-tracking branch 'upstream/pregmod-master' into pregmod-dev

parents 8227089e a5034a72
No related branches found
No related tags found
No related merge requests found
......@@ -71,3 +71,14 @@ button.accordion.active:before {
max-height: 0;
overflow: hidden;
}
div.accordion:before {
content: '\002B';
color: #777;
font-weight: bold;
float: left;
margin-right: 5px;
}
div.accordion.active:before {
content: "\2212";
}
......@@ -30,10 +30,19 @@ postdisplay["doAccordion"] = function (content) {
acc[i].onclick = function () {
this.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = 2 * panel.scrollHeight + "px";
if(panel == null || panel == undefined){
panel = document.getElementById(this.id + "accHidden");
if( panel.style.display=='none' ){
panel.style.display = '';
}else{
panel.style.display = 'none';
}
}else{
if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = 2 * panel.scrollHeight + "px";
}
}
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment