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

foxr foxr at source.lon-capa.org
Wed Apr 4 06:48:30 EDT 2012


foxr		Wed Apr  4 10:48:30 2012 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  BZ 5891 - Add call to establish the page compute time for the due date timer.
  
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.501 loncom/homework/structuretags.pm:1.502
--- loncom/homework/structuretags.pm:1.501	Sun Mar 25 14:35:58 2012
+++ loncom/homework/structuretags.pm	Wed Apr  4 10:48:30 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.501 2012/03/25 14:35:58 foxr Exp $
+# $Id: structuretags.pm,v 1.502 2012/04/04 10:48:30 foxr Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1541,6 +1541,14 @@
 
     &reset_problem_globals('problem');
 
+    #
+    # This shouild be just above the return so that the
+    # time put in the javascript is as late as possible in the
+    # computation:
+    #
+    if ($target eq 'web') {
+        $result .= &Apache::lonhtmlcommon::set_compute_end_time();
+    }
     return $result;
 }
 




More information about the LON-CAPA-cvs mailing list