- More fixes for editting, we dont' actually download the description or award type, so let the user edit those.

This commit is contained in:
dave 2009-09-19 08:14:59 +00:00
parent 7a474046a5
commit 5989a8c254

View File

@ -275,9 +275,7 @@ function update_awardinfo()
/* Enable all fields */ /* Enable all fields */
$("#awardinfo_name").removeAttr('disabled'); $("#awardinfo_name").removeAttr('disabled');
$("#awardinfo_sponsors_id").removeAttr('disabled'); $("#awardinfo_sponsors_id").removeAttr('disabled');
$("#awardinfo_description").removeAttr('disabled');
$("#awardinfo_criteria").removeAttr('disabled'); $("#awardinfo_criteria").removeAttr('disabled');
$("#awardinfo_award_types_id").removeAttr('disabled');
$.getJSON("<?=$_SERVER['PHP_SELF']?>?action=awardinfo_load&id="+award_id, $.getJSON("<?=$_SERVER['PHP_SELF']?>?action=awardinfo_load&id="+award_id,
function(json){ function(json){
@ -294,13 +292,12 @@ function update_awardinfo()
$("#awardinfo_selfnominate").val([json.self_nominate]); $("#awardinfo_selfnominate").val([json.self_nominate]);
$("#awardinfo_schedulejudges").val([json.schedule_judges]); $("#awardinfo_schedulejudges").val([json.schedule_judges]);
/* Disable fields we dont' want the user to edit */ /* Disable fields we don't want the user to edit
* for downloaded awards */
if(json.award_source_fairs_id != null) { if(json.award_source_fairs_id != null) {
$("#awardinfo_name").attr('disabled', 'disabled'); $("#awardinfo_name").attr('disabled', 'disabled');
$("#awardinfo_sponsors_id").attr('disabled', 'disabled'); $("#awardinfo_sponsors_id").attr('disabled', 'disabled');
$("#awardinfo_description").attr('disabled', 'disabled');
$("#awardinfo_criteria").attr('disabled', 'disabled'); $("#awardinfo_criteria").attr('disabled', 'disabled');
$("#awardinfo_award_types_id").attr('disabled', 'disabled');
} }
}); });