--- loncom/homework/hint.pm 2006/12/19 00:40:38 1.65 +++ loncom/homework/hint.pm 2006/12/19 00:49:53 1.66 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # implements the tags that control the hints # -# $Id: hint.pm,v 1.65 2006/12/19 00:40:38 albertel Exp $ +# $Id: hint.pm,v 1.66 2006/12/19 00:49:53 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -110,6 +110,7 @@ sub start_numericalhint { my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; #do everything in end, so intervening work &Apache::response::start_hintresponse($parstack,$safeeval); + &Apache::caparesponse::push_answer(); my $result; if ($target eq 'edit') { $result.=&Apache::edit::tag_start($target,$token); @@ -215,6 +216,7 @@ sub end_numericalhint { } elsif ($target eq 'edit') { $result.=&Apache::edit::end_row().&Apache::edit::end_table(); } + &Apache::caparesponse::pop_answer(); &Apache::response::end_hintresponse(); return $result; }