alecpl
2009-04-23 7a723522945b8954681171aa012b7ee1431a45cd
program/steps/mail/func.inc
@@ -374,8 +374,9 @@
/**
 * return javascript commands to add rows to the message list
 * or to replace the whole list (IE only)
 */
function rcmail_js_message_list($a_headers, $insert_top=FALSE)
function rcmail_js_message_list($a_headers, $insert_top=FALSE, $replace=TRUE)
  {
  global $CONFIG, $IMAP, $OUTPUT;
@@ -394,7 +395,7 @@
  $browser = new rcube_browser;
  $OUTPUT->command('set_message_coltypes', $a_show_cols);
  if ($browser->ie)
  if ($browser->ie && $replace)
    $OUTPUT->command('offline_message_list', true);
  // loop through message headers
@@ -456,7 +457,7 @@
      $insert_top);
    }
    if ($browser->ie)
    if ($browser->ie && $replace)
      $OUTPUT->command('offline_message_list', false);
  }