forked from extern/egroupware
"stupid IE forgets the checked value if the checkbox gets moved"
This commit is contained in:
parent
0cfe754826
commit
f35db30ef4
@ -267,12 +267,12 @@ function set_multiselection(name,values,reset)
|
|||||||
value = values.indexOf(','+checkbox.value+',') >= 0;
|
value = values.indexOf(','+checkbox.value+',') >= 0;
|
||||||
if (reset || value) {
|
if (reset || value) {
|
||||||
//alert(checkbox.name+': value='+checkbox.value+', checked='+checkbox.checked+' --> '+value);
|
//alert(checkbox.name+': value='+checkbox.value+', checked='+checkbox.checked+' --> '+value);
|
||||||
checkbox.checked = value;
|
|
||||||
if (value && checkbox.parentNode != div_first) {
|
if (value && checkbox.parentNode != div_first) {
|
||||||
br = checkbox.parentNode.nextSibling;
|
br = checkbox.parentNode.nextSibling;
|
||||||
div.insertBefore(div.removeChild(checkbox.parentNode),div_first);
|
div.insertBefore(div.removeChild(checkbox.parentNode),div_first);
|
||||||
div.insertBefore(div.removeChild(br),div_first);
|
div.insertBefore(div.removeChild(br),div_first);
|
||||||
}
|
}
|
||||||
|
checkbox.checked = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user