Commit 59e6e987 by Yvon Kerdoncuff

restore maxHeight toggler for accordions panels so that FAQ of reception module work fine

parent 6b4f9909
Pipeline #3919 failed with stage
in 0 seconds
...@@ -543,6 +543,12 @@ $(document).on('click', '.accordion', function(){ ...@@ -543,6 +543,12 @@ $(document).on('click', '.accordion', function(){
} else { } else {
panel.style.display = "block"; panel.style.display = "block";
} }
if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + "px";
}
}); });
function report_JS_error(e, m) { function report_JS_error(e, m) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment