--- loncom/interface/lonhtmlcommon.pm 2006/07/29 00:31:58 1.147 +++ loncom/interface/lonhtmlcommon.pm 2006/08/08 19:10:54 1.152 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common html routines # -# $Id: lonhtmlcommon.pm,v 1.147 2006/07/29 00:31:58 raeburn Exp $ +# $Id: lonhtmlcommon.pm,v 1.152 2006/08/08 19:10:54 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -689,14 +689,6 @@ sub StatusOptions { $status = $env{'form.Status'} if (exists($env{'form.Status'})); } - my $OpSel1 = ''; - my $OpSel2 = ''; - my $OpSel3 = ''; - - if($status eq 'Any') { $OpSel3 = ' selected'; } - elsif($status eq 'Expired' ) { $OpSel2 = ' selected'; } - else { $OpSel1 = ' selected'; } - my $Str = ''; $Str .= ''."\n"; } @@ -1014,9 +1012,12 @@ sub crumbs { $output.=qq{$dir/}; } } else { - $output.=$uri; + foreach my $dir (split('/',$uri)) { + if (! $dir) { next; } + $output.=$dir.'/'; + } } - unless ($uri=~/\/$/) { $output=~s/\/$//; } + if ($uri !~ m|/$|) { $output=~s|/$||; } return $output.''.($noformat?'':'
'); } @@ -1784,7 +1785,7 @@ sub set_form_elements { ($$elements{$name} eq 'checkbox')) { $output .= qq| if (courseForm.elements['$name'].value == "$value") { - courseForm.elemenst['$name'].checked = true; + courseForm.elements['$name'].checked = true; }|; } }