--- loncom/homework/chemresponse.pm 2006/07/27 20:34:40 1.69
+++ loncom/homework/chemresponse.pm 2006/12/04 21:23:01 1.71
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# chemical equation style response
#
-# $Id: chemresponse.pm,v 1.69 2006/07/27 20:34:40 albertel Exp $
+# $Id: chemresponse.pm,v 1.71 2006/12/04 21:23:01 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -245,6 +245,7 @@ sub start_organicresponse {
$result .='
';
$result .=&Apache::edit::text_arg('Correct Answer:','answer',
$token,40);
+ $result .='
';
$result .=&Apache::edit::text_arg('JME string of the answer (automatically updated when using the Draw Molecule button):',
'jmeanswer',$token);
my $jmeanswer=&Apache::lonxml::get_param('jmeanswer',$parstack,
@@ -466,7 +467,7 @@ sub start_reactionresponse {
&Apache::lonxml::default_homework_load($safeeval);
}
@Apache::scripttag::parser_env = @_;
- $Apache::inputtags::answertxt{$id}=&Apache::run::run("return &chemparse(q\0$ans\0);",$safeeval);
+ $Apache::inputtags::answertxt{$id}=[&Apache::run::run("return &chemparse(q\0$ans\0);",$safeeval)];
}
} elsif ($target eq "edit") {
$result .=&Apache::edit::tag_start($target,$token);