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

sakharuk lon-capa-cvs@mail.lon-capa.org
Tue, 13 May 2003 20:39:58 -0000


sakharuk		Tue May 13 16:39:58 2003 EDT

  Modified files:              
    /loncom/homework/caparesponse	caparesponse.pm 
  Log:
  Changes to print single resource with answers. Mainly removal of some stupid additions which I've done recently.
  
  
Index: loncom/homework/caparesponse/caparesponse.pm
diff -u loncom/homework/caparesponse/caparesponse.pm:1.99 loncom/homework/caparesponse/caparesponse.pm:1.100
--- loncom/homework/caparesponse/caparesponse.pm:1.99	Tue May 13 11:47:45 2003
+++ loncom/homework/caparesponse/caparesponse.pm	Tue May 13 16:39:58 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # caparesponse definition
 #
-# $Id: caparesponse.pm,v 1.99 2003/05/13 15:47:45 sakharuk Exp $
+# $Id: caparesponse.pm,v 1.100 2003/05/13 20:39:58 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -319,7 +319,7 @@
 	    if ($target eq 'answer') {
 		if ($high) { $ans.=' ['.$low.','.$high.']'; }
 		if ($sighigh) { 
-		    if (($ENV{'form.print_answer'} eq 'yes') && ($ENV{'form.grade_target'} eq 'answer')) {
+		    if ($ENV{'form.print_answer'} eq 'yes') {
 			$ans.= " Sig \\textit{$siglow - $sighigh}"; 
 		    } else {
 			$ans.= " Sig <i>$siglow - $sighigh</i>"; 
@@ -336,7 +336,7 @@
 	}
 	if ($unit) {
 	    if ($target eq 'answer') {
-		if (($ENV{'form.print_answer'} eq 'yes') && ($ENV{'form.grade_target'} eq 'answer')) {
+		if ($ENV{'form.print_answer'} eq 'yes') {
 		    $result.=&Apache::response::answer_part($$tagstack[-1],
 							    "Unit: \\verb|$unit|");
 		} else {