[LON-CAPA-cvs] cvs: loncom /interface lonhtmlcommon.pm

raeburn lon-capa-cvs@mail.lon-capa.org
Thu, 27 Oct 2005 23:13:50 -0000


raeburn		Thu Oct 27 19:13:50 2005 EDT

  Modified files:              
    /loncom/interface	lonhtmlcommon.pm 
  Log:
  Make more flexible. 
  
  
Index: loncom/interface/lonhtmlcommon.pm
diff -u loncom/interface/lonhtmlcommon.pm:1.115 loncom/interface/lonhtmlcommon.pm:1.116
--- loncom/interface/lonhtmlcommon.pm:1.115	Fri Oct 14 14:28:26 2005
+++ loncom/interface/lonhtmlcommon.pm	Thu Oct 27 19:13:49 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common html routines
 #
-# $Id: lonhtmlcommon.pm,v 1.115 2005/10/14 18:28:26 albertel Exp $
+# $Id: lonhtmlcommon.pm,v 1.116 2005/10/27 23:13:49 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1333,7 +1333,10 @@
 
 sub role_select_row {
     my ($roles,$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="roles" multiple >\n|;
     foreach my $role (@$roles) {
@@ -1347,7 +1350,9 @@
     }
     $output .= qq|                </select>
                                  </td>\n|;
-    $output .= &row_closure();
+    if (defined($title)) {
+        $output .= &row_closure();
+    }
     return $output;
 }