[LON-CAPA-cvs] cvs: loncom /interface lonhtmlcommon.pm
raeburn
lon-capa-cvs@mail.lon-capa.org
Thu, 27 Oct 2005 23:18:21 -0000
raeburn Thu Oct 27 19:18:21 2005 EDT
Modified files:
/loncom/interface lonhtmlcommon.pm
Log:
Add flexibility here too.
Index: loncom/interface/lonhtmlcommon.pm
diff -u loncom/interface/lonhtmlcommon.pm:1.116 loncom/interface/lonhtmlcommon.pm:1.117
--- loncom/interface/lonhtmlcommon.pm:1.116 Thu Oct 27 19:13:49 2005
+++ loncom/interface/lonhtmlcommon.pm Thu Oct 27 19:18:21 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common html routines
#
-# $Id: lonhtmlcommon.pm,v 1.116 2005/10/27 23:13:49 raeburn Exp $
+# $Id: lonhtmlcommon.pm,v 1.117 2005/10/27 23:18:21 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1440,7 +1440,10 @@
sub status_select_row {
my ($types,$col_width,$tablecolor,$title) = @_;
- my $output = &row_title($col_width,$tablecolor,$title);
+ my $output;
+ if (defined($title)) {
+ $output = &row_title($col_width,$tablecolor,$title);
+ }
$output .= qq| <td>
<select name="types" multiple>\n|;
foreach my $status_type (sort(keys(%{$types}))) {
@@ -1448,7 +1451,9 @@
}
$output .= qq| </select>
</td>\n|;
- $output .= &row_closure();
+ if (defined($title)) {
+ $output .= &row_closure();
+ }
return $output;
}