From af24d6095e076fee5a448efd15270c08d8b5748d Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Thu, 18 Jun 2026 11:04:10 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20erreur=20masquage=20dur=C3=A9e=20a?= =?UTF-8?q?mortissement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts.js b/scripts.js index c59df55..0521809 100644 --- a/scripts.js +++ b/scripts.js @@ -12,9 +12,10 @@ function toggleInputs(idcb, idfields) { } } -function toggleVisibility(idcheck, fields) { - const elem = document.getElementById(idcheck); - fields.forEach(function (field) { +function toggleVisibility(id_check, fields) { + const elem = document.getElementById(id_check); + fields.forEach(function (id_field) { + const field = document.getElementById(id_field); if (elem.checked) { field.classList.remove('hidden'); } else {