diff options
-rw-r--r-- | program/js/app.js | 6 | ||||
-rw-r--r-- | program/steps/mail/func.inc | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/program/js/app.js b/program/js/app.js index 59d23f101..bf6e8bc25 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3406,7 +3406,11 @@ function rcube_webmail() var row = document.createElement('TR'); row.id = 'rcmrow'+uid; - row.className = 'message '+(even ? 'even' : 'odd')+(flags.unread ? ' unread' : '')+(flags.deleted ? ' deleted' : ''); + row.className = 'message' + + (even ? ' even' : ' odd') + + (flags.unread ? ' unread' : '') + + (flags.deleted ? ' deleted' : '') + + (flags.flagged ? ' flagged' : ''); if (this.message_list.in_selection(uid)) row.className += ' selected'; diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index a5ffb9d7b..43e21eea2 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -198,7 +198,7 @@ function rcmail_message_list($attrib) { $message_icon = $attach_icon = $flagged_icon = ''; $js_row_arr = array(); - $zebra_class = $i%2 ? 'even' : 'odd'; + $zebra_class = $i%2 ? ' even' : ' odd'; // set messag attributes to javascript array if ($header->deleted) @@ -238,12 +238,12 @@ function rcmail_message_list($attrib) if ($attrib['attachmenticon'] && preg_match("/multipart\/[mr]/i", $header->ctype)) $attach_icon = $attrib['attachmenticon']; - $out .= sprintf('<tr id="rcmrow%d" class="message%s%s %s">'."\n", + $out .= sprintf('<tr id="rcmrow%d" class="message%s%s%s%s">'."\n", $header->uid, $header->seen ? '' : ' unread', $header->deleted ? ' deleted' : '', $header->flagged ? ' flagged' : '', - $zebra_class); + $zebra_class); $out .= sprintf("<td class=\"icon\">%s</td>\n", $message_icon ? sprintf($image_tag, $skin_path, $message_icon, '') : ''); |