hmm better implement the selection of eligibility - it wasnt working here for me, but was on some windows browsers.. so.. be explicit with what its doing and now it should work everywhere

This commit is contained in:
james 2011-03-22 20:40:31 +00:00
parent 23d8765fa6
commit 3af6933f73

View File

@ -438,8 +438,17 @@ function update_eligibility()
award_tab_update['eligibility'] = award_id;
$.getJSON("<?=$_SERVER['PHP_SELF']?>?action=eligibility_load&id="+award_id,
function(json){
$("[name=categories\\[\\]]").val(json.categories);
$("[name=divisions\\[\\]]").val(json.divisions);
$("[name^=\"divisions\"]").attr('checked',false);
$("[name^=\"categories\"]").attr('checked',false);
for(i=0;i<json.categories.length;i++) {
var c=json.categories[i];
$("#eligibility_categories_"+c).attr('checked', 'checked');
}
for(i=0;i<json.divisions.length;i++) {
var d=json.divisions[i];
$("#eligibility_divisions_"+d).attr('checked', 'checked');
}
});
}