--- loncom/interface/lonhelper.pm 2005/07/12 06:52:48 1.110 +++ loncom/interface/lonhelper.pm 2005/07/12 16:03:12 1.111 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # .helper XML handler to implement the LON-CAPA helper # -# $Id: lonhelper.pm,v 1.110 2005/07/12 06:52:48 albertel Exp $ +# $Id: lonhelper.pm,v 1.111 2005/07/12 16:03:12 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1265,13 +1265,13 @@ BUTTONS my $id = &new_id(); $result .= "\n \n"; $result .= "[1],"<>&\"'") . "'"; if ($checkedChoices{$choice->[1]}) { - $result .= " checked "; + $result .= " checked='checked' "; } - $result .= qq{id="$id"}; + $result .= qq{id="id$id"}; my $choiceLabel = $choice->[0]; if ($choice->[4]) { # if we need to evaluate this choice $choiceLabel = "sub { my $helper = shift; my $state = shift;" . @@ -1279,7 +1279,7 @@ BUTTONS $choiceLabel = eval($choiceLabel); $choiceLabel = &$choiceLabel($helper, $self); } - $result .= "/> ".qq{