--- loncom/interface/lonpickcourse.pm 2011/09/01 02:32:50 1.103 +++ loncom/interface/lonpickcourse.pm 2013/02/05 17:02:40 1.105 @@ -1,7 +1,7 @@ # The LearningOnline Network # Pick a course # -# $Id: lonpickcourse.pm,v 1.103 2011/09/01 02:32:50 raeburn Exp $ +# $Id: lonpickcourse.pm,v 1.105 2013/02/05 17:02:40 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -133,8 +133,7 @@ sub handler { $onlyown) { $r->print(&gochoose_javascript($type,$multiple,$autosubmit,$lastaction)); } - $r->print(''); + $r->print(&Apache::lonhtmlcommon::scripttag($jscript)); $r->print($submitopener); # ------------------------------------------ Display of filters to limit search @@ -364,9 +363,9 @@ sub display_matched_courses { } if ($numcourses > 1 && $multiple) { - $r->print('print(' -   

'); } @@ -494,9 +493,9 @@ sub display_matched_courses { } if (!%courses) { - $r->print(&mt('None found')); + $r->print('

'.&mt('None found').'

'); } elsif ($multiple) { - $r->print(''); + $r->print(''); } $r->print(''. "\n".''."\n". @@ -645,7 +644,7 @@ sub build_filters { } else { $typeselectform = ''."\n". + $output .= ''."\n". '

'."\n".''."\n".'
'."\n"; return $jscript.$warning.$output; @@ -1012,7 +1011,6 @@ sub gochoose_javascript { }, ); my $output .= qq| - |; - return $output; + return &Apache::lonhtmlcommon::scripttag($output); } 1;