--- loncom/interface/lonpickcourse.pm 2011/05/27 14:39:53 1.102
+++ loncom/interface/lonpickcourse.pm 2013/03/01 04:55:35 1.106
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Pick a course
#
-# $Id: lonpickcourse.pm,v 1.102 2011/05/27 14:39:53 bisitz Exp $
+# $Id: lonpickcourse.pm,v 1.106 2013/03/01 04:55:35 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -31,6 +31,7 @@ package Apache::lonpickcourse;
use strict;
use Apache::Constants qw(:common);
use Apache::loncommon;
+use Apache::lonhtmlcommon;
use Apache::loncoursedata;
use Apache::lonnet;
use Apache::lonlocal;
@@ -105,10 +106,11 @@ sub handler {
if ((($env{'form.form'} eq 'cu') || ($env{'form.form'} eq 'studentform')) &&
($env{'form.pickedcourse'})) {
- $loaditem{'onload'} .= 'setRoles();setSections();';
+ $loaditem{'onload'} .= 'setDefaultCredits();setRoles();setSections();';
}
my $js = &js_changer();
- $r->print(&Apache::loncommon::start_page($title,$js,
+ $r->print(&Apache::loncommon::start_page($title,
+ &Apache::lonhtmlcommon::scripttag($js),
{'add_entries' => \%loaditem,
'no_nav_bar' => 1, }));
@@ -133,8 +135,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
@@ -207,20 +208,19 @@ sub handler {
}
sub js_changer {
- return <<"ENDJS";
+ return <