--- loncom/homework/optionresponse.pm 2010/02/05 21:38:41 1.161
+++ loncom/homework/optionresponse.pm 2010/02/05 23:02:39 1.162
@@ -1,7 +1,7 @@
# LearningOnline Network with CAPA
# option list style responses
#
-# $Id: optionresponse.pm,v 1.161 2010/02/05 21:38:41 www Exp $
+# $Id: optionresponse.pm,v 1.162 2010/02/05 23:02:39 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -123,10 +123,21 @@ sub start_foilgroup {
Delete an Option:
+ |
ENDTABLE
- $result.= &Apache::edit::checked_arg('Print options:','texoptions',
+ $result.= ''.&Apache::edit::checked_arg('Print options:','texoptions',
[ ['nochoice','Don\'t show option list'] ]
- ,$token);
+ ,$token).' | ';
+ $result.= '';
$result.= &Apache::edit::end_row();
$result.= &Apache::edit::start_spanning_row();
$result.= $insertlist.' ';
@@ -151,7 +162,7 @@ ENDTABLE
$optchanged=1;
}
my $rebuildtag = &Apache::edit::get_new_args($token,$parstack,$safeeval,
- ('texoptions'));
+ 'texoptions','checkboxvalue');
if ($optchanged || $rebuildtag ) {
$result = "[2]{'texoptions'}.'" ';
+ $result .= 'checkboxvalue="'.$token->[2]{'checkboxvalue'}.'"';
$result .= '>';
} # else nothing changed so just use the default mechanism
}
|