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

raeburn raeburn at source.lon-capa.org
Sat May 3 11:22:02 EDT 2014


raeburn		Sat May  3 15:22:02 2014 EDT

  Modified files:              
    /loncom/interface	lonnavdisplay.pm 
  Log:
  - Time::HiRes not in use.
  
  
Index: loncom/interface/lonnavdisplay.pm
diff -u loncom/interface/lonnavdisplay.pm:1.25 loncom/interface/lonnavdisplay.pm:1.26
--- loncom/interface/lonnavdisplay.pm:1.25	Fri Feb 28 19:20:06 2014
+++ loncom/interface/lonnavdisplay.pm	Sat May  3 15:22:02 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavdisplay.pm,v 1.25 2014/02/28 19:20:06 bisitz Exp $
+# $Id: lonnavdisplay.pm,v 1.26 2014/05/03 15:22:02 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -38,7 +38,7 @@
 use Apache::lonnet;
 use Apache::lonlocal;
 use Apache::londocs();
-use Time::HiRes qw( gettimeofday tv_interval );
+#use Time::HiRes qw( gettimeofday tv_interval );
 
 sub handler {
     my $r = shift;
@@ -100,7 +100,11 @@
         $start_page = &Apache::loncommon::start_page($title,undef,$args);
     }
     $r->print($start_page.
-              '<script type="text/javascript">window.focus();</script>');
+              '<script type="text/javascript">'."\n".
+              '// <![CDATA['."\n".
+              'window.focus();'."\n".
+              '// ]]>'."\n".
+              '</script>');
     &startContentScreen($r,'navmaps');
     $r->rflush();
 




More information about the LON-CAPA-cvs mailing list