Avoid errors for personal categories

This commit is contained in:
Nathan Gray 2013-12-10 22:21:36 +00:00
parent bbd146c0b9
commit bc4857c376

View File

@ -16,6 +16,9 @@ function check_owner(button) {
{ {
owner = [owner]; owner = [owner];
} }
// No owner probably means selectbox is read-only, so no need to check
if(owner == null) return true;
var all_users = owner.indexOf('0') >= 0; var all_users = owner.indexOf('0') >= 0;
// If they checked all users, uncheck the others // If they checked all users, uncheck the others