--- loncom/interface/lonpickcourse.pm 2009/10/31 14:27:48 1.88 +++ loncom/interface/lonpickcourse.pm 2009/11/03 14:32:44 1.89 @@ -1,7 +1,7 @@ # The LearningOnline Network # Pick a course # -# $Id: lonpickcourse.pm,v 1.88 2009/10/31 14:27:48 raeburn Exp $ +# $Id: lonpickcourse.pm,v 1.89 2009/11/03 14:32:44 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -102,10 +102,7 @@ sub handler { if ((($env{'form.form'} eq 'cu') || ($env{'form.form'} eq 'studentform')) && ($env{'form.pickedcourse'})) { - if ($env{'form.form'} eq 'cu') { - $loaditem{'onload'} .= 'setRoles();'; - } - $loaditem{'onload'} .= 'setSections();'; + $loaditem{'onload'} .= 'setRoles();setSections();'; } my $js = &js_changer(); $r->print(&Apache::loncommon::start_page($title,$js, @@ -300,7 +297,11 @@ sub display_matched_courses { $r->print('