Commit fe44b2be by François C.

Add missing accordion listner

parent 6931eb3a
Pipeline #1780 passed with stage
in 1 minute 44 seconds
...@@ -150,4 +150,17 @@ function get_module_settings() { ...@@ -150,4 +150,17 @@ function get_module_settings() {
} }
get_module_settings(); get_module_settings();
$(document).on('click', '.accordion', function(){
/* Toggle between adding and removing the "active" class,
to highlight the button that controls the panel */
this.classList.toggle("active");
/* Toggle between hiding and showing the active panel */
var panel = this.nextElementSibling;
if (panel.style.display === "block") {
panel.style.display = "none";
} else {
panel.style.display = "block";
}
});
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