Ignore:
Timestamp:
Oct 12, 2009 6:58:30 AM (4 years ago)
Author:
alec
Message:
  • performance fix in rcmail_js_message_list()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/steps/mail/func.inc

    r3034 r3035  
    404404 
    405405  $OUTPUT->command('set_message_coltypes', $a_show_cols); 
     406 
     407  // remove 'attachment' and 'flag' columns, we don't need them here 
     408  if(($key = array_search('attachment', $a_show_cols)) !== FALSE) 
     409    unset($a_show_cols[$key]); 
     410  if(($key = array_search('flag', $a_show_cols)) !== FALSE) 
     411    unset($a_show_cols[$key]); 
     412 
    406413  if ($browser->ie && $replace) 
    407414    $OUTPUT->command('offline_message_list', true); 
     
    417424 
    418425    $IMAP->set_charset(!empty($header->charset) ? $header->charset : $CONFIG['default_charset']); 
    419  
    420     // remove 'attachment' and 'flag' columns, we don't need them here 
    421     if(($key = array_search('attachment', $a_show_cols)) !== FALSE) 
    422       unset($a_show_cols[$key]); 
    423     if(($key = array_search('flag', $a_show_cols)) !== FALSE) 
    424       unset($a_show_cols[$key]); 
    425426 
    426427    // format each col; similar as in rcmail_message_list() 
     
    466467    } 
    467468 
    468     if ($browser->ie && $replace) 
    469       $OUTPUT->command('offline_message_list', false); 
     469  if ($browser->ie && $replace) 
     470    $OUTPUT->command('offline_message_list', false); 
    470471  } 
    471472 
Note: See TracChangeset for help on using the changeset viewer.