--- loncom/interface/lonrequestcourse.pm 2010/06/20 01:39:08 1.53 +++ loncom/interface/lonrequestcourse.pm 2010/07/30 23:51:41 1.54.2.1 @@ -1,7 +1,7 @@ # The LearningOnline Network # Request a course # -# $Id: lonrequestcourse.pm,v 1.53 2010/06/20 01:39:08 raeburn Exp $ +# $Id: lonrequestcourse.pm,v 1.54.2.1 2010/07/30 23:51:41 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -647,7 +647,11 @@ sub onload_action { sub print_main_menu { my ($r,$can_request,$states,$dom,$jscript,$loaditems,$crumb,$request_domains) = @_; my ($types,$typename) = &Apache::loncommon::course_types(); - my $onchange = 'this.form.submit()'; + my $onchange; + unless ($env{'form.interface'} eq 'textual') { + $onchange = 'this.form.submit()'; + } + my $nextstate_setter = "\n"; if (ref($states) eq 'HASH') { foreach my $key (keys(%{$states})) { @@ -856,7 +860,7 @@ END } if ($action eq 'new') { my $jsextra; - if ($state eq 'courseinfo') { + if (($state eq 'courseinfo') || ($state eq 'codepick')) { $jsextra = "\n".&Apache::loncommon::coursebrowser_javascript($dom); } elsif ($state eq 'enrollment') { if (($env{'form.crstype'} eq 'official') &&