Correction erreur masquage durée amortissement
This commit is contained in:
parent
e6fb335e4c
commit
af24d6095e
1 changed files with 4 additions and 3 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue