mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-23 21:51:14 +01:00
Switch to use prop() for checked, which works (jQuery version difference)
This commit is contained in:
parent
fbbe467a7e
commit
9d929dac60
@ -14,9 +14,9 @@ function check_owner(element_id) {
|
|||||||
var all_users = $j(document.getElementById(element_id + '[0]'));
|
var all_users = $j(document.getElementById(element_id + '[0]'));
|
||||||
|
|
||||||
// If they checked all users, uncheck the others
|
// If they checked all users, uncheck the others
|
||||||
if(all_users.length > 0 && all_users.attr("checked")) {
|
if(all_users.length > 0 && all_users.prop("checked")) {
|
||||||
checkboxes.attr("checked",false);
|
checkboxes.prop("checked",false);
|
||||||
all_users.attr("checked", true);
|
all_users.prop("checked", true);
|
||||||
checkboxes = $j(':checkbox', document.getElementById(element_id)).filter(':checked');
|
checkboxes = $j(':checkbox', document.getElementById(element_id)).filter(':checked');
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user