--- loncom/homework/imageresponse.pm 2003/10/27 19:27:09 1.37 +++ loncom/homework/imageresponse.pm 2003/10/27 20:04:34 1.38 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # image click response style # -# $Id: imageresponse.pm,v 1.37 2003/10/27 19:27:09 albertel Exp $ +# $Id: imageresponse.pm,v 1.38 2003/10/27 20:04:34 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -175,7 +175,8 @@ sub end_foilgroup { my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; my $result=''; my @whichopt; - if ($target eq 'web' || $target eq 'grade' || $target eq 'tex') { + if ($target eq 'web' || $target eq 'grade' || $target eq 'tex' || + $target eq 'analyze') { my ($count,$max) = &getfoilcounts($parstack,$safeeval); if ($count>$max) { $count=$max } &Apache::lonxml::debug("Count is $count from $max"); @@ -443,7 +444,8 @@ sub end_image { sub start_rectangle { my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; my $result=''; - if ($target eq 'web' || $target eq 'grade' || $target eq 'tex') { + if ($target eq 'web' || $target eq 'grade' || $target eq 'tex' || + $target eq 'analyze') { &Apache::lonxml::startredirection; } elsif ($target eq 'edit') { my $coords=&Apache::lonxml::get_all_text('/rectangle',$parser); @@ -479,7 +481,8 @@ sub grade_rectangle { sub end_rectangle { my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; my $result; - if ($target eq 'web' || $target eq 'grade' || $target eq 'tex') { + if ($target eq 'web' || $target eq 'grade' || $target eq 'tex' || + $target eq 'analyze') { my $name = $Apache::imageresponse::curname; my $area = &Apache::lonxml::endredirection; &Apache::lonxml::debug("out is $area for $name");