--- loncom/interface/portfolio.pm 2010/10/29 23:19:54 1.228 +++ loncom/interface/portfolio.pm 2015/01/05 15:56:24 1.232.2.1 @@ -1,7 +1,7 @@ # The LearningOnline Network # portfolio browser # -# $Id: portfolio.pm,v 1.228 2010/10/29 23:19:54 raeburn Exp $ +# $Id: portfolio.pm,v 1.232.2.1 2015/01/05 15:56:24 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -303,7 +303,7 @@ sub display_directory { my %access_controls = &Apache::lonnet::get_access_controls($current_permissions,$group); my $now = time; if ($env{"form.mode"} eq 'selectfile') { - &select_files($r); + &select_files($r,$dir_list); $checked_files =&Apache::lonnet::files_in_path($uname,$env{'form.currentpath'}); $select_mode = 'true'; } @@ -396,6 +396,7 @@ sub display_directory { push(@dir_lines, [$filename,$dom,$testdir,$size,$mtime,$obs]); } } + my $zerobyte; foreach my $dir_line (@dir_lines) { my ($filename,$dom,$testdir,$size,$mtime,$obs) = @$dir_line; my ($fname,$version,$extension) = &Apache::grades::file_name_version_ext($filename); @@ -455,11 +456,16 @@ sub display_directory { my $css_class = 'LC_browser_file'; my $line; if ($select_mode eq 'true') { - $line='
'.&mt('[quant,_1,file] in list not selectable as file size is 0 bytes.',$zerobyte).'
'); + } + $r->print(' @@ -873,7 +883,7 @@ sub display_access { } $info .= "