Switch to the "All Eligible" list by default if there are no

nominations.
This commit is contained in:
dave 2010-04-19 06:07:52 +00:00
parent 9388c571ae
commit aa314974c1

View File

@ -601,8 +601,13 @@ function print_award(&$r, $fairs_id, $editor=false, $editor_data=array())
</form>
<script language="javascript" type="text/javascript">
set_nom(<?=$pr->id?>);
</script>
<? /* Start with the nominated list, unless there are none, do
* the eligible list by default in that case */
if($n_nom > 0)
echo "set_nom({$pr->id});";
else
echo "set_eli({$pr->id});";
?> </script>
<?
}
}