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

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 15 Nov 2005 22:19:57 -0000


albertel		Tue Nov 15 17:19:57 2005 EDT

  Modified files:              
    /loncom/homework	essayresponse.pm 
  Log:
  - don't show file selector whn in answer mode
  
  
Index: loncom/homework/essayresponse.pm
diff -u loncom/homework/essayresponse.pm:1.68 loncom/homework/essayresponse.pm:1.69
--- loncom/homework/essayresponse.pm:1.68	Mon Sep 19 16:41:01 2005
+++ loncom/homework/essayresponse.pm	Tue Nov 15 17:19:57 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # essay (ungraded) style responses
 #
-# $Id: essayresponse.pm,v 1.68 2005/09/19 20:41:01 albertel Exp $
+# $Id: essayresponse.pm,v 1.69 2005/11/15 22:19:57 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -42,7 +42,8 @@
     my $id = &Apache::response::start_response($parstack,$safeeval);
     if ($target eq 'meta') {
 	$result=&Apache::response::meta_package_write('essayresponse');
-    } elsif ($target eq 'web') {
+    } elsif ($target eq 'web' &&
+	     $Apache::inputtags::status[-1] eq 'CAN_ANSWER') {
 	my $part= $Apache::inputtags::part;
 	my $ncol= &Apache::lonnet::EXT("resource.$part".'_'."$id.maxcollaborators");
 	my $coll= &HTML::Entities::encode($Apache::lonhomework::history{"resource.$part.$id.collaborators"},'<>&"');