--- loncom/homework/chemresponse.pm 2008/12/11 14:52:30 1.83 +++ loncom/homework/chemresponse.pm 2008/12/22 15:05:49 1.85 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # chemical equation style response # -# $Id: chemresponse.pm,v 1.83 2008/12/11 14:52:30 bisitz Exp $ +# $Id: chemresponse.pm,v 1.85 2008/12/22 15:05:49 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -245,7 +245,7 @@ sub start_organicresponse { $result .='
'; $result .=&Apache::edit::text_arg('Correct Answer:','answer', $token,40); - $result .='
'; + $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, @@ -338,6 +338,7 @@ sub end_organicresponse { "$partid.$id"); # part.response if ($target eq 'analyze') { $Apache::lonhomework::analyze{"$partid.$id.type"} = 'organicresponse'; + push (@{ $Apache::lonhomework::analyze{"parts"} },"$partid.$id"); &Apache::lonhomework::set_bubble_lines(); } } @@ -580,6 +581,7 @@ sub end_reactionresponse { &Apache::lonxml::increment_counter(&Apache::response::repetition(), "$partid.$id"); if ($target eq 'analyze') { $Apache::lonhomework::analyze{"$partid.$id.type"} = 'reactionresponse'; + push (@{ $Apache::lonhomework::analyze{"parts"} },"$partid.$id"); &Apache::lonhomework::set_bubble_lines(); } }