[Svn] r3035 - trunk/roundcubemail/program/steps/mail

trac at roundcube.net trac at roundcube.net
Mon Oct 12 12:58:30 CEST 2009


Author: alec
Date: 2009-10-12 05:58:30 -0500 (Mon, 12 Oct 2009)
New Revision: 3035

Modified:
   trunk/roundcubemail/program/steps/mail/func.inc
Log:
- performance fix in rcmail_js_message_list()


Modified: trunk/roundcubemail/program/steps/mail/func.inc
===================================================================
--- trunk/roundcubemail/program/steps/mail/func.inc	2009-10-12 10:37:49 UTC (rev 3034)
+++ trunk/roundcubemail/program/steps/mail/func.inc	2009-10-12 10:58:30 UTC (rev 3035)
@@ -403,6 +403,13 @@
   $browser = new rcube_browser;
 
   $OUTPUT->command('set_message_coltypes', $a_show_cols);
+
+  // remove 'attachment' and 'flag' columns, we don't need them here
+  if(($key = array_search('attachment', $a_show_cols)) !== FALSE)
+    unset($a_show_cols[$key]);
+  if(($key = array_search('flag', $a_show_cols)) !== FALSE)
+    unset($a_show_cols[$key]);
+
   if ($browser->ie && $replace)
     $OUTPUT->command('offline_message_list', true);
 
@@ -417,12 +424,6 @@
 
     $IMAP->set_charset(!empty($header->charset) ? $header->charset : $CONFIG['default_charset']);
 
-    // remove 'attachment' and 'flag' columns, we don't need them here
-    if(($key = array_search('attachment', $a_show_cols)) !== FALSE)
-      unset($a_show_cols[$key]);
-    if(($key = array_search('flag', $a_show_cols)) !== FALSE)
-      unset($a_show_cols[$key]);
-
     // format each col; similar as in rcmail_message_list()
     foreach ($a_show_cols as $col)
       {
@@ -465,8 +466,8 @@
       $insert_top);
     }
 
-    if ($browser->ie && $replace)
-      $OUTPUT->command('offline_message_list', false);
+  if ($browser->ie && $replace)
+    $OUTPUT->command('offline_message_list', false);
   }
 
 

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



More information about the Svn mailing list