[Svn] r1942 - in trunk/roundcubemail/program: js steps/mail

trac at roundcube.net trac at roundcube.net
Mon Oct 6 11:32:10 CEST 2008


Author: alec
Date: 2008-10-06 04:32:09 -0500 (Mon, 06 Oct 2008)
New Revision: 1942

Modified:
   trunk/roundcubemail/program/js/app.js
   trunk/roundcubemail/program/steps/mail/func.inc
Log:
- #1485463: fixed css classes setting in messages list


Modified: trunk/roundcubemail/program/js/app.js
===================================================================
--- trunk/roundcubemail/program/js/app.js	2008-10-05 20:40:25 UTC (rev 1941)
+++ trunk/roundcubemail/program/js/app.js	2008-10-06 09:32:09 UTC (rev 1942)
@@ -3406,7 +3406,11 @@
     
     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';

Modified: trunk/roundcubemail/program/steps/mail/func.inc
===================================================================
--- trunk/roundcubemail/program/steps/mail/func.inc	2008-10-05 20:40:25 UTC (rev 1941)
+++ trunk/roundcubemail/program/steps/mail/func.inc	2008-10-06 09:32:09 UTC (rev 1942)
@@ -198,7 +198,7 @@
     {
     $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 @@
     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, '') : '');
 

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list