Correction erreur masquage durée amortissement

This commit is contained in:
Jean-Christophe Engel 2026-06-18 11:04:10 +02:00
parent e6fb335e4c
commit af24d6095e

View file

@ -12,9 +12,10 @@ function toggleInputs(idcb, idfields) {
} }
} }
function toggleVisibility(idcheck, fields) { function toggleVisibility(id_check, fields) {
const elem = document.getElementById(idcheck); const elem = document.getElementById(id_check);
fields.forEach(function (field) { fields.forEach(function (id_field) {
const field = document.getElementById(id_field);
if (elem.checked) { if (elem.checked) {
field.classList.remove('hidden'); field.classList.remove('hidden');
} else { } else {