- #1485463: fixed css classes setting in messages list

release-0.6
alecpl 16 years ago
parent f81c33bb7c
commit a164a2e64b

@ -3406,7 +3406,11 @@ function rcube_webmail()
var row = document.createElement('TR'); var row = document.createElement('TR');
row.id = 'rcmrow'+uid; 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)) if (this.message_list.in_selection(uid))
row.className += ' selected'; row.className += ' selected';

@ -238,7 +238,7 @@ function rcmail_message_list($attrib)
if ($attrib['attachmenticon'] && preg_match("/multipart\/[mr]/i", $header->ctype)) if ($attrib['attachmenticon'] && preg_match("/multipart\/[mr]/i", $header->ctype))
$attach_icon = $attrib['attachmenticon']; $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->uid,
$header->seen ? '' : ' unread', $header->seen ? '' : ' unread',
$header->deleted ? ' deleted' : '', $header->deleted ? ' deleted' : '',

Loading…
Cancel
Save