[LON-CAPA-cvs] cvs: loncom /homework imageresponse.pm

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 09 Mar 2006 01:37:40 -0000


albertel		Wed Mar  8 20:37:40 2006 EDT

  Modified files:              
    /loncom/homework	imageresponse.pm 
  Log:
  - answer mode works for web
  
  
Index: loncom/homework/imageresponse.pm
diff -u loncom/homework/imageresponse.pm:1.75 loncom/homework/imageresponse.pm:1.76
--- loncom/homework/imageresponse.pm:1.75	Wed Mar  8 20:33:57 2006
+++ loncom/homework/imageresponse.pm	Wed Mar  8 20:37:39 2006
@@ -2,7 +2,7 @@
 # The LearningOnline Network with CAPA
 # image click response style
 #
-# $Id: imageresponse.pm,v 1.75 2006/03/09 01:33:57 albertel Exp $
+# $Id: imageresponse.pm,v 1.76 2006/03/09 01:37:39 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -347,7 +347,8 @@
 	} elsif ( $target eq 'analyze') {
 	    &Apache::response::analyze_store_foilgroup(\@whichopt,
 						      ['text','image','area']);
-	} elsif ($target eq 'answer') {
+	} elsif ($target eq 'answer'
+		 && $env{'form.answer_output_mode'} ne 'tex') {
 	    $result=&display_answers($target,\@whichopt);
 	}