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

banghart lon-capa-cvs@mail.lon-capa.org
Mon, 20 Nov 2006 21:00:48 -0000


banghart		Mon Nov 20 16:00:48 2006 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
  Log:
  	Remove redundant CSS classes.
  	Add data_table sub to continue data row of same color.
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.470 loncom/interface/loncommon.pm:1.471
--- loncom/interface/loncommon.pm:1.470	Wed Nov 15 17:30:40 2006
+++ loncom/interface/loncommon.pm	Mon Nov 20 16:00:47 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.470 2006/11/15 22:30:40 banghart Exp $
+# $Id: loncommon.pm,v 1.471 2006/11/20 21:00:47 banghart Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3354,16 +3354,6 @@
   font: small $sans;
   text-align: right;
 }
-table.LC_metadata_table {
-    border-width; 0px;
-    padding: 0px;
-}
-tr.LC_metadata_light {
-    background: $data_table_light;
-}
-tr.LC_metadata_dark               {
-    background: $data_table_dark;
-}
 span.LC_metadata {
     font-family: $sans;
 }
@@ -4213,6 +4203,13 @@
 	$css_class = (join(' ',$css_class,$add_class));
 	return  '<tr class="'.$css_class.'">'."\n";;
     }
+    
+    sub continue_data_table_row {
+	my ($add_class) = @_;
+	my $css_class = ($row_count % 2)?'':'LC_even_row';
+	$css_class = (join(' ',$css_class,$add_class));
+	return  '<tr class="'.$css_class.'">'."\n";;
+    }
 
     sub end_data_table_row {
 	return '</tr>'."\n";;