Fix : the select range select also the hidden element

This commit is contained in:
sparkyx 2023-01-15 17:00:51 +01:00
parent 67e179c995
commit 1468f26239

View file

@ -58,7 +58,15 @@ function checkbox_set_range(evt, elt, p_name) {
}
var check = (aName[from].checked) ? true : false;
for (x = from; x <= end; x++) {
aName[x].checked = check;
if (aName[x].parentNode.parentNode )
{
if ( window.getComputedStyle(aName[x].parentNode.parentNode).display != "none" ) {
/* console.debug(window.getComputedStyle(aName[x].parentNode.parentNode).display);*/
aName[x].checked = check;
}
} else {
aName[x].checked = check;
}
}
}