fix for 5216
This commit is contained in:
@@ -85,7 +85,7 @@ function select_all_in(elTagName, elClass, elId) {
|
||||
var inputs = document.getElementsByTagName('INPUT');
|
||||
inputs = filterByParent(inputs, function(el) {return findParentNode(el, elTagName, elClass, elId);});
|
||||
for(var i = 0; i < inputs.length; ++i) {
|
||||
if(inputs[i].type == 'checkbox') {
|
||||
if(inputs[i].type == 'checkbox' || inputs[i].type == 'radio') {
|
||||
inputs[i].checked = 'checked';
|
||||
}
|
||||
}
|
||||
@@ -95,7 +95,7 @@ function deselect_all_in(elTagName, elClass, elId) {
|
||||
var inputs = document.getElementsByTagName('INPUT');
|
||||
inputs = filterByParent(inputs, function(el) {return findParentNode(el, elTagName, elClass, elId);});
|
||||
for(var i = 0; i < inputs.length; ++i) {
|
||||
if(inputs[i].type == 'checkbox') {
|
||||
if(inputs[i].type == 'checkbox' || inputs[i].type == 'radio') {
|
||||
inputs[i].checked = '';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user