Fix : the select range select also the hidden element
This commit is contained in:
parent
67e179c995
commit
1468f26239
1 changed files with 9 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue