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

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 15 Nov 2005 21:41:12 -0000


albertel		Tue Nov 15 16:41:12 2005 EDT

  Modified files:              
    /loncom/homework	bridgetask.pm 
  Log:
  - better handling of the Done Buttons and Tries/Submit button
  
  
Index: loncom/homework/bridgetask.pm
diff -u loncom/homework/bridgetask.pm:1.77 loncom/homework/bridgetask.pm:1.78
--- loncom/homework/bridgetask.pm:1.77	Tue Nov 15 14:50:22 2005
+++ loncom/homework/bridgetask.pm	Tue Nov 15 16:41:10 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: bridgetask.pm,v 1.77 2005/11/15 19:50:22 albertel Exp $
+# $Id: bridgetask.pm,v 1.78 2005/11/15 21:41:10 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -695,7 +695,8 @@
 <p>'.&mt('Indicate the files from your portfolio to be evaluated in grading this task.').'</p>').
 							  "</table>";
 		}
-		if (!$previous && !$env{'form.donescreen'}) {
+		if (!$previous && $status ne 'SHOW_ANSWER' &&
+		    &show_task($status,$previous)) {
 		    $result.=&Apache::inputtags::gradestatus('0');
 		    $result.='</form>';
 		    $result.=<<DONEBUTTON;