--- loncom/interface/lonhtmlcommon.pm 2004/10/21 11:18:06 1.94 +++ loncom/interface/lonhtmlcommon.pm 2004/11/11 18:19:41 1.95 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common html routines # -# $Id: lonhtmlcommon.pm,v 1.94 2004/10/21 11:18:06 foxr Exp $ +# $Id: lonhtmlcommon.pm,v 1.95 2004/11/11 18:19:41 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -287,7 +287,7 @@ sub date_setter { document.$formname.$dname\_day.value = 30; } } - + function $dname\_disable() { document.$formname.$dname\_month.disabled=true; document.$formname.$dname\_day.disabled=true; @@ -319,64 +319,62 @@ document.$formname.$dname\_year.value, } ENDJS - $result .= " }; # Month my @Months = qw/January February March April May June July August September October November December/; # Pad @Months with a bogus value to make indexing easier unshift(@Months,'If you can read this an error occurred'); - if ($includeempty) { $result.=""; } + if ($includeempty) { $monthselector.=""; } for(my $m = 1;$m <=$#Months;$m++) { - $result .= " \n\n"; + $result .= "\n\n"; return $result; }