--- loncom/homework/optionresponse.pm 2006/02/02 20:36:07 1.131 +++ loncom/homework/optionresponse.pm 2006/03/09 01:04:43 1.133 @@ -1,7 +1,7 @@ # LearningOnline Network with CAPA # option list style responses # -# $Id: optionresponse.pm,v 1.131 2006/02/02 20:36:07 albertel Exp $ +# $Id: optionresponse.pm,v 1.133 2006/03/09 01:04:43 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -114,6 +114,9 @@ sub start_foilgroup { Delete an Option: ENDTABLE + $result.= &Apache::edit::checked_arg('Print options:','texoptions', + [ ['nochoice','Don\'t show option list'] ] + ,$token); $result.= &Apache::edit::end_row(); $result.= &Apache::edit::start_spanning_row(); $result.= $insertlist.'
'; @@ -137,7 +140,9 @@ ENDTABLE } $optchanged=1; } - if ($optchanged) { + my $rebuildtag = &Apache::edit::get_new_args($token,$parstack,$safeeval, + ('texoptions')); + if ($optchanged || $rebuildtag ) { $result = "[2]{'texoptions'}.'" '; + $result .= '>'; } # else nothing changed so just use the default mechanism } if ($target eq 'tex' and $Apache::lonhomework::type ne 'exam') { @@ -407,7 +414,7 @@ sub displayfoils { foreach my $option (@opt) { my $escopt=&HTML::Entities::encode($option,'\'"&<>'); if ($option eq $lastopt) { - $optionlist.="\n"; + $optionlist.="\n"; } else { $optionlist.="\n"; }