Skip to content
Snippets Groups Projects
Commit 85ae8109 authored by Alice Poggioli's avatar Alice Poggioli
Browse files

wIP : HELP.

parent 2128c0cb
No related branches found
No related tags found
1 merge request!87Feature/add dealt with buttin
......@@ -402,10 +402,16 @@ jQuery(document).ready(function($) {
accRequest[i].addEventListener("click", function() {
/* Toggle between adding and removing the "active" class,
to highlight the button that controls the panel */
this.classList.toggle("active");
//this.classList.toggle("active");
console.log(this)
console.log("hello")
if (this.classList.contains("active") == true){
this.classList.remove("active")
//this.nextElementSibling.querySelector("sib-form + div").style.maxHeight = "0px";
}else{
this.classList.add("active")
}
/* Toggle between hiding and showing the active panel */
var panelRequest = this.nextElementSibling;
......
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