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

matthew lon-capa-cvs@mail.lon-capa.org
Tue, 27 May 2003 20:36:02 -0000


matthew		Tue May 27 16:36:02 2003 EDT

  Modified files:              
    /loncom/interface/spreadsheet	Spreadsheet.pm 
  Log:
  Fix display of template rows to not show uneditable cells as editable.
  
  
Index: loncom/interface/spreadsheet/Spreadsheet.pm
diff -u loncom/interface/spreadsheet/Spreadsheet.pm:1.6 loncom/interface/spreadsheet/Spreadsheet.pm:1.7
--- loncom/interface/spreadsheet/Spreadsheet.pm:1.6	Fri May 23 17:03:29 2003
+++ loncom/interface/spreadsheet/Spreadsheet.pm	Tue May 27 16:36:02 2003
@@ -1,5 +1,5 @@
 #
-# $Id: Spreadsheet.pm,v 1.6 2003/05/23 21:03:29 matthew Exp $
+# $Id: Spreadsheet.pm,v 1.7 2003/05/27 20:36:02 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1158,8 +1158,8 @@
     for (my $i = 0; $i<=$#rowdata; $i++) {
         my $cell = $rowdata[$i];
         if ($i < $num_uneditable) {
-	    $row_html .= '<td bgcolor="#DDCCFF">'.
-                &html_editable_cell($cell,'#DDCCFF',$allowed).'</td>';
+	    $row_html .= '<td bgcolor="#FFDDDD">'.
+                &html_uneditable_cell($cell,'#FFDDDD',$allowed).'</td>';
         } else {
 	    $row_html .= '<td bgcolor="#EOFFDD">'.
                 &html_editable_cell($cell,'#EOFFDD',$allowed).'</td>';