--- loncom/interface/coursecatalog.pm 2008/07/07 15:20:18 1.36 +++ loncom/interface/coursecatalog.pm 2008/07/08 09:23:38 1.37 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler for displaying the course catalog interface # -# $Id: coursecatalog.pm,v 1.36 2008/07/07 15:20:18 raeburn Exp $ +# $Id: coursecatalog.pm,v 1.37 2008/07/08 09:23:38 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -101,9 +101,6 @@ function setCatDepth(depth) { return; } -ENDSCRIPT - if ($env{'form.state'} eq 'listing') { - $catjs .= qq| function changeSort(caller) { document.$formname.sortby.value = caller; document.$formname.submit(); @@ -111,8 +108,9 @@ function changeSort(caller) { function setCourseId(caller) { document.$formname.coursenum.value = caller; document.$formname.submit(); -}\n|; - } +} + +ENDSCRIPT my $numtitles; if ($env{'form.currcat_0'} eq 'instcode::0') { $numtitles = &instcode_course_selector($r,$codedom,$formname,$domdesc, @@ -319,10 +317,7 @@ function setElements() { ''. ''); - if (($numtitles > 0) && ($env{'form.state'} eq 'listing')) { - $r->print('
'); - } + '" />

'); } else { &cat_header($r,$codedom,$js,\%add_entries,$catlinks,$numtitles); my $cat_maxdepth = $env{'form.catalog_maxdepth'};