- Removed zebra-class

release-0.7
alecpl 13 years ago
parent dfc79b341c
commit 57863c1a4d

@ -788,8 +788,7 @@ function rcube_table_output($attrib, $table_data, $a_show_cols, $id_col)
$db = $RCMAIL->get_dbh(); $db = $RCMAIL->get_dbh();
while ($table_data && ($sql_arr = $db->fetch_assoc($table_data))) while ($table_data && ($sql_arr = $db->fetch_assoc($table_data)))
{ {
$zebra_class = $c % 2 ? 'even' : 'odd'; $table->add_row(array('id' => 'rcmrow' . html_identifier($sql_arr[$id_col])));
$table->add_row(array('id' => 'rcmrow' . html_identifier($sql_arr[$id_col]), 'class' => $zebra_class));
// format each col // format each col
foreach ($a_show_cols as $col) foreach ($a_show_cols as $col)
@ -798,15 +797,12 @@ function rcube_table_output($attrib, $table_data, $a_show_cols, $id_col)
$c++; $c++;
} }
} }
else else {
{
foreach ($table_data as $row_data) foreach ($table_data as $row_data)
{ {
$zebra_class = $c % 2 ? 'even' : 'odd'; $class = !empty($row_data['class']) ? $row_data['class'] : '';
if (!empty($row_data['class']))
$zebra_class .= ' '.$row_data['class'];
$table->add_row(array('id' => 'rcmrow' . html_identifier($row_data[$id_col]), 'class' => $zebra_class)); $table->add_row(array('id' => 'rcmrow' . html_identifier($row_data[$id_col]), 'class' => $class));
// format each col // format each col
foreach ($a_show_cols as $col) foreach ($a_show_cols as $col)
@ -1314,7 +1310,6 @@ function rcmail_render_folder_tree_html(&$arrFolders, &$mbox_name, &$jslist, $at
$idx = 0; $idx = 0;
$out = ''; $out = '';
foreach ($arrFolders as $key => $folder) { foreach ($arrFolders as $key => $folder) {
$zebra_class = (($nestLevel+1)*$idx) % 2 == 0 ? 'even' : 'odd';
$title = null; $title = null;
if (($folder_class = rcmail_folder_classname($folder['id'])) && !$realnames) { if (($folder_class = rcmail_folder_classname($folder['id'])) && !$realnames) {
@ -1350,8 +1345,6 @@ function rcmail_render_folder_tree_html(&$arrFolders, &$mbox_name, &$jslist, $at
else else
$classes[] = '_'.asciiwords($folder_class ? $folder_class : strtolower($folder['id']), true); $classes[] = '_'.asciiwords($folder_class ? $folder_class : strtolower($folder['id']), true);
$classes[] = $zebra_class;
if ($folder['id'] == $mbox_name) if ($folder['id'] == $mbox_name)
$classes[] = 'selected'; $classes[] = 'selected';

@ -1686,7 +1686,6 @@ function rcube_webmail()
even = rowcount%2, even = rowcount%2,
message = this.env.messages[uid], message = this.env.messages[uid],
css_class = 'message' css_class = 'message'
+ (even ? ' even' : ' odd')
+ (!flags.seen ? ' unread' : '') + (!flags.seen ? ' unread' : '')
+ (flags.deleted ? ' deleted' : '') + (flags.deleted ? ' deleted' : '')
+ (flags.flagged ? ' flagged' : '') + (flags.flagged ? ' flagged' : '')
@ -4119,19 +4118,17 @@ function rcube_webmail()
if (!this.gui_objects.contactslist || !this.gui_objects.contactslist.tBodies[0]) if (!this.gui_objects.contactslist || !this.gui_objects.contactslist.tBodies[0])
return false; return false;
var tbody = this.gui_objects.contactslist.tBodies[0], var c, tbody = this.gui_objects.contactslist.tBodies[0],
rowcount = tbody.rows.length,
even = rowcount%2,
row = document.createElement('tr'); row = document.createElement('tr');
row.id = 'rcmrow'+String(cid).replace(this.identifier_expr, '_'); row.id = 'rcmrow'+String(cid).replace(this.identifier_expr, '_');
row.className = 'contact '+(even ? 'even' : 'odd'); row.className = 'contact';
if (this.contact_list.in_selection(cid)) if (this.contact_list.in_selection(cid))
row.className += ' selected'; row.className += ' selected';
// add each submitted col // add each submitted col
for (var c in cols) { for (c in cols) {
col = document.createElement('td'); col = document.createElement('td');
col.className = String(c).toLowerCase(); col.className = String(c).toLowerCase();
col.innerHTML = cols[c]; col.innerHTML = cols[c];

@ -910,13 +910,6 @@ body.messagelist
background-color: #FFF; background-color: #FFF;
} }
/*
#messagelist tr.odd
{
background-color: #F9F9F9;
}
*/
#messagelist tr.unread #messagelist tr.unread
{ {
font-weight: bold; font-weight: bold;

Loading…
Cancel
Save