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

www lon-capa-cvs@mail.lon-capa.org
Thu, 17 Jul 2003 20:05:59 -0000


www		Thu Jul 17 16:05:59 2003 EDT

  Modified files:              
    /loncom/homework	inputtags.pm 
  Log:
  Remove printing weirdness for correct problems.
  
  
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.109 loncom/homework/inputtags.pm:1.110
--- loncom/homework/inputtags.pm:1.109	Tue Jul 15 17:26:23 2003
+++ loncom/homework/inputtags.pm	Thu Jul 17 16:05:59 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # input  definitons
 #
-# $Id: inputtags.pm,v 1.109 2003/07/15 21:26:23 www Exp $
+# $Id: inputtags.pm,v 1.110 2003/07/17 20:05:59 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -346,8 +346,9 @@
           unless ($ENV{'course.'.
 			   $ENV{'request.course.id'}.
 			   '.disable_receipt_display'} eq 'yes') { 
-	      $message.='<br />Your receipt is '.&Apache::lonnet::receipt().
-		  &Apache::loncommon::help_open_topic('Receipt');
+	      $message.=(($target eq 'web')?'<br />':' ').
+		  'Your receipt is '.&Apache::lonnet::receipt().
+       (($target eq 'web')?&Apache::loncommon::help_open_topic('Receipt'):'');
 	  }
       }
       $bgcolor=$possiblecolors{'correct'};
@@ -368,8 +369,9 @@
           unless ($ENV{'course.'.
 			   $ENV{'request.course.id'}.
 			   '.disable_receipt_display'} eq 'yes') { 
-              $message.='<br />Your receipt is '.&Apache::lonnet::receipt().
-		  &Apache::loncommon::help_open_topic('Receipt');
+	      $message.=(($target eq 'web')?'<br />':' ').
+		  'Your receipt is '.&Apache::lonnet::receipt().
+       (($target eq 'web')?&Apache::loncommon::help_open_topic('Receipt'):'');
 	  }
 	  $bgcolor=$possiblecolors{'correct'};
 	  $button=0;