forked from science-ation/science-ation
Switch to the "All Eligible" list by default if there are no
nominations.
This commit is contained in:
parent
9388c571ae
commit
aa314974c1
@ -601,8 +601,13 @@ function print_award(&$r, $fairs_id, $editor=false, $editor_data=array())
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script language="javascript" type="text/javascript">
|
<script language="javascript" type="text/javascript">
|
||||||
set_nom(<?=$pr->id?>);
|
<? /* Start with the nominated list, unless there are none, do
|
||||||
</script>
|
* the eligible list by default in that case */
|
||||||
|
if($n_nom > 0)
|
||||||
|
echo "set_nom({$pr->id});";
|
||||||
|
else
|
||||||
|
echo "set_eli({$pr->id});";
|
||||||
|
?> </script>
|
||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user