version 1.48.2.2, 2009/10/28 17:28:17
|
version 1.49, 2009/02/26 16:17:30
|
Line 123 ENDSCRIPT
|
Line 123 ENDSCRIPT
|
} |
} |
} else { |
} else { |
my (%add_entries); |
my (%add_entries); |
my ($currdepth,$deeper) = &get_depth_values(); |
|
if ($selitem) { |
if ($selitem) { |
my $alert = &mt('Choose a subcategory to display'); |
|
if (!$deeper) { |
|
$alert = &mt('Choose a category to display'); |
|
} |
|
$catjs .= <<ENDJS; |
$catjs .= <<ENDJS; |
function check_selected() { |
function check_selected() { |
if (document.coursecats.$selitem.options[document.coursecats.$selitem.selectedIndex].value == "") { |
if (document.coursecats.$selitem.options[document.coursecats.$selitem.selectedIndex].value == "") { |
alert('$alert'); |
alert('Choose a subcategory to display'); |
return false; |
return false; |
} |
} |
} |
} |
Line 144 ENDJS
|
Line 139 ENDJS
|
$r->print('<form name="'.$formname. |
$r->print('<form name="'.$formname. |
'" method="post" action="/adm/coursecatalog">'. |
'" method="post" action="/adm/coursecatalog">'. |
&additional_filters($codedom,$has_subcats)."\n"); |
&additional_filters($codedom,$has_subcats)."\n"); |
|
my ($currdepth,$deeper) = &get_depth_values(); |
$r->print('<input type="hidden" name="catalog_maxdepth" value="'. |
$r->print('<input type="hidden" name="catalog_maxdepth" value="'. |
$deeper.'" />'."\n"); |
$deeper.'" />'."\n"); |
for (my $i=0; $i<$deeper; $i++) { |
for (my $i=0; $i<$deeper; $i++) { |
Line 380 function setElements() {
|
Line 376 function setElements() {
|
sub cat_header { |
sub cat_header { |
my ($r,$codedom,$js,$add_entries,$catlinks,$numtitles) = @_; |
my ($r,$codedom,$js,$add_entries,$catlinks,$numtitles) = @_; |
my $start_page = |
my $start_page = |
&Apache::loncommon::start_page('Course Catalog',$js, |
&Apache::loncommon::start_page('Other',$js, |
{ |
{ |
'add_entries' => $add_entries, |
'add_entries' => $add_entries, |
'no_inline_link' => 1,}); |
'no_inline_link' => 1,}); |
Line 404 sub cat_header {
|
Line 400 sub cat_header {
|
} |
} |
my $onchange; |
my $onchange; |
unless (($env{'browser.interface'} eq 'textual') || ($env{'form.interface'} eq 'textual')) { |
unless (($env{'browser.interface'} eq 'textual') || ($env{'form.interface'} eq 'textual')) { |
$onchange = 'this.form.submit()'; |
$onchange = 1; |
} |
} |
$r->print('<form name="coursecatdom" method="post" action="/adm/coursecatalog">'. |
$r->print('<form name="coursecatdom" method="post" action="/adm/coursecatalog">'. |
'<table border="0"><tr><td><b>'.&mt('Domain:').'</b></td><td>'. |
'<table border="0"><tr><td><b>'.&mt('Domain:').'</b></td><td>'. |