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

foxr foxr at source.lon-capa.org
Thu Apr 5 05:49:51 EDT 2012


foxr		Thu Apr  5 09:49:51 2012 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  Require the target be 'web' to output due-date javascript.
  
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.502 loncom/homework/structuretags.pm:1.503
--- loncom/homework/structuretags.pm:1.502	Wed Apr  4 10:48:30 2012
+++ loncom/homework/structuretags.pm	Thu Apr  5 09:49:51 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.502 2012/04/04 10:48:30 foxr Exp $
+# $Id: structuretags.pm,v 1.503 2012/04/05 09:49:51 foxr Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1181,7 +1181,7 @@
 	}
 	my $resource_due =  &Apache::lonhomework::due_date(0, $env{'request.symb'});
 	my $time_left = $resource_due - time();
-	if ($resource_due && ($time_left > 0)) {
+	if ($resource_due && ($time_left > 0) && ($target eq 'web')) {
 	    $result .= &Apache::lonhtmlcommon::set_due_date($resource_due);
 	}
 




More information about the LON-CAPA-cvs mailing list