"stupid IE forgets the checked value if the checkbox gets moved"

This commit is contained in:
Ralf Becker 2007-09-13 13:00:29 +00:00
parent 0cfe754826
commit f35db30ef4

View File

@ -267,12 +267,12 @@ function set_multiselection(name,values,reset)
value = values.indexOf(','+checkbox.value+',') >= 0;
if (reset || value) {
//alert(checkbox.name+': value='+checkbox.value+', checked='+checkbox.checked+' --> '+value);
checkbox.checked = value;
if (value && checkbox.parentNode != div_first) {
br = checkbox.parentNode.nextSibling;
div.insertBefore(div.removeChild(checkbox.parentNode),div_first);
div.insertBefore(div.removeChild(br),div_first);
}
checkbox.checked = value;
}
}
}