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

raeburn raeburn at source.lon-capa.org
Sun Mar 16 21:48:35 EDT 2014


raeburn		Mon Mar 17 01:48:35 2014 EDT

  Modified files:              
    /loncom/interface	coursecatalog.pm 
  Log:
  - satisfy w3c validation.
  
  
Index: loncom/interface/coursecatalog.pm
diff -u loncom/interface/coursecatalog.pm:1.78 loncom/interface/coursecatalog.pm:1.79
--- loncom/interface/coursecatalog.pm:1.78	Wed Jan 15 18:49:19 2014
+++ loncom/interface/coursecatalog.pm	Mon Mar 17 01:48:34 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler for displaying the course catalog interface
 #
-# $Id: coursecatalog.pm,v 1.78 2014/01/15 18:49:19 bisitz Exp $
+# $Id: coursecatalog.pm,v 1.79 2014/03/17 01:48:34 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -298,8 +298,11 @@
     my ($jscript,$totcodes,$numtitles,$lasttitle) = 
         &Apache::courseclassifier::instcode_selectors_data($codedom,$formname,
                            \%cat_items,$codetitles,\%cat_titles,\%cat_order);
-    my $js = '<script type"text/javascript">'."\n$jscript\n$catjs\n".
-              '</script>';
+    my $js = '<script type"text/javascript">'."\n".
+             '// <![CDATA['."\n".
+             "$jscript\n$catjs\n".
+             '// ]]>'."\n".
+             '</script>';
     if ($totcodes) {
         if (($env{'form.state'} eq 'listing') && ($numtitles > 0)) {
             $add_entries{'onLoad'} = 'setElements();';




More information about the LON-CAPA-cvs mailing list