diff --git a/src/scripts/coopstarter.js b/src/scripts/coopstarter.js index dd595f608552fc3846ab84e8ee03c104da9ce347..3385b58702e42c09c3a8df0c983bd6210cea7028 100644 --- a/src/scripts/coopstarter.js +++ b/src/scripts/coopstarter.js @@ -372,9 +372,9 @@ jQuery(document).ready(function($) { //MENTOR DASHBOARD************************************************************* window.setTimeout(() => { - var forms = document.querySelectorAll("sib-form"); - forms.forEach(form => { - form.addEventListener("populate", e => { + // var forms = document.querySelectorAll("sib-form"); + // forms.forEach(form => { + // form.addEventListener("populate", e => { var previewImage = document.querySelectorAll( "sib-form-file input[name='preview_image']+input" ); @@ -386,7 +386,7 @@ jQuery(document).ready(function($) { for (let item of previewImage) { item.addEventListener("change", loadFile); } - }); + // }); //Manage the accordion in request mentor dashboard. var accRequest = document.querySelectorAll( @@ -398,19 +398,15 @@ 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"); - 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; - if (!this.classList.contain("active")) { + if (!this.classList.contains("active")) { panelRequest.style.maxHeight = null; refreshPagination(); @@ -442,8 +438,8 @@ jQuery(document).ready(function($) { }) ); }); - } - }); + // } + }; }, 3000); //ENTREPRENEUR DASHBOARD*************************************************************