Commit b479fafd by François C.

Merge branch 'fix_faq_accordion_bug' into dev_cooperatic

parents 773d5ea8 b6ec85ac
Pipeline #1677 passed with stage
in 1 minute 32 seconds
......@@ -20,21 +20,6 @@ function init_faq() {
$("#request_form_link_btn").prop("href", request_form_link);
}
$(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";
}
$("#shift_exchange_btn").on("click", () => {
$(document).on('click', "#shift_exchange_btn", () => {
goto('echange-de-services');
});
});
\ No newline at end of file
......@@ -467,12 +467,15 @@ $(document).on('click', '.accordion', function(){
/* 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";
}
console.log(panel)
});
function report_JS_error(e, m) {
try {
$.post('/log_js_error', {module: m, error: JSON.stringify(e)});
......
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