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

raeburn raeburn at source.lon-capa.org
Mon Mar 17 22:03:16 EDT 2014


raeburn		Tue Mar 18 02:03:16 2014 EDT

  Modified files:              
    /loncom/interface	coursecatalog.pm 
  Log:
  - satisfy w3c validation.
  
  
Index: loncom/interface/coursecatalog.pm
diff -u loncom/interface/coursecatalog.pm:1.80 loncom/interface/coursecatalog.pm:1.81
--- loncom/interface/coursecatalog.pm:1.80	Mon Mar 17 18:20:32 2014
+++ loncom/interface/coursecatalog.pm	Tue Mar 18 02:03:16 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler for displaying the course catalog interface
 #
-# $Id: coursecatalog.pm,v 1.80 2014/03/17 18:20:32 bisitz Exp $
+# $Id: coursecatalog.pm,v 1.81 2014/03/18 02:03:16 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -330,7 +330,11 @@
                   '<input type="hidden" name="numtitles" value="'.$numtitles.
                   '" /></form><br /><br />');
     } else {
-        $js = '<script type="text/javascript">'."\n$catjs\n".'</script>';
+        $js = '<script type="text/javascript">'."\n".
+              '// <![CDATA['."\n".
+              "$catjs\n".
+              '// ]]>'."\n".
+              '</script>';
         &cat_header($r,$codedom,$js,\%add_entries,$catlinks,$numtitles);
         my $cat_maxdepth = $env{'form.catalog_maxdepth'};
         $r->print('<form name="'.$formname.'" method="post" action="/adm/coursecatalog">'.




More information about the LON-CAPA-cvs mailing list