Fix not being able to select other groups in categories but always User all

This commit is contained in:
Hadi Nategh 2014-01-28 11:47:08 +00:00
parent b84c150202
commit f2ae2ef6b8

View File

@ -14,7 +14,7 @@ function check_owner(element_id) {
var all_users = $j(document.getElementById(element_id + '[0]'));
// If they checked all users, uncheck the others
if(all_users.length > 0 && all_users.attr("checked")) {
if(all_users.length > 0 && all_users[0].checked) {
checkboxes.attr("checked",false);
all_users.attr("checked", true);
checkboxes = $j(':checkbox', document.getElementById(element_id)).filter(':checked');