--- loncom/interface/lonhelper.pm 2003/05/02 19:20:51 1.17 +++ loncom/interface/lonhelper.pm 2003/05/05 18:05:21 1.19 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # .helper XML handler to implement the LON-CAPA helper # -# $Id: lonhelper.pm,v 1.17 2003/05/02 19:20:51 bowersj2 Exp $ +# $Id: lonhelper.pm,v 1.19 2003/05/05 18:05:21 bowersj2 Exp $ # # Copyright Michigan State University Board of Trustees # @@ -997,17 +997,20 @@ sub render { if ($self->{'multichoice'}) { $result .= < - function checkall(value) { + function checkall(value, checkName) { for (i=0; i SCRIPT $buttons = < - - + +
  BUTTONS } @@ -1474,10 +1477,10 @@ sub render { if ($self->{'multichoice'}) { $result = < - function checkall(value) { + function checkall(value, checkName) { for (i=0; i   - - + +
  BUTTONS } @@ -1627,21 +1630,25 @@ sub render { my $self = shift; my $result = ''; my $buttons = ''; + my $var = $self->{'variable'}; if ($self->{'multichoice'}) { $result = < - function checkall(value) { + function checkall(value, checkName) { for (i=0; i SCRIPT $buttons = < - - + +
BUTTONS } @@ -1682,7 +1689,7 @@ BUTTONS $checked = 1; } $result .= - " value='" . HTML::Entities::encode($_) + " value='" . HTML::Entities::encode($_ . ':' . $choices->{$_}->[$section]) . "' />" . HTML::Entities::encode($choices->{$_}->[$fullname]) . "" @@ -1832,10 +1839,10 @@ sub render { if ($self->{'multichoice'}) { $result = < - function checkall(value) { + function checkall(value, checkName) { for (i=0; i   - - + +
  BUTTONS }