[LON-CAPA-cvs] cvs: loncom /interface lonhtmlcommon.pm

raeburn raeburn at source.lon-capa.org
Mon May 28 15:11:00 EDT 2012


raeburn		Mon May 28 19:11:00 2012 EDT

  Modified files:              
    /loncom/interface	lonhtmlcommon.pm 
  Log:
  - xhtml.
  
  
Index: loncom/interface/lonhtmlcommon.pm
diff -u loncom/interface/lonhtmlcommon.pm:1.315 loncom/interface/lonhtmlcommon.pm:1.316
--- loncom/interface/lonhtmlcommon.pm:1.315	Mon May 28 19:05:21 2012
+++ loncom/interface/lonhtmlcommon.pm	Mon May 28 19:11:00 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common html routines
 #
-# $Id: lonhtmlcommon.pm,v 1.315 2012/05/28 19:05:21 raeburn Exp $
+# $Id: lonhtmlcommon.pm,v 1.316 2012/05/28 19:11:00 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1516,17 +1516,16 @@
 sub set_compute_end_time {
 
     my $now = time()*1000;	# Javascript times are in ms.
-    my $js = "
-<script type='text/javascript'>
+    return <<"END";
+
+<script type="text/javascript">
 //<![CDATA[
 serverTime = $now;
 clientTime = (new Date()).getTime();
 //]]>
 </script>
 
-";
-    return $js;
-    
+END
 }
 
 ############################################################




More information about the LON-CAPA-cvs mailing list