From 7a723522945b8954681171aa012b7ee1431a45cd Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Thu, 23 Apr 2009 02:15:21 -0400 Subject: [PATCH] - messages list fix for IE --- program/steps/mail/check_recent.inc | 2 +- program/steps/mail/func.inc | 7 ++++--- program/steps/mail/move_del.inc | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/program/steps/mail/check_recent.inc b/program/steps/mail/check_recent.inc index a066853..8d757d4 100644 --- a/program/steps/mail/check_recent.inc +++ b/program/steps/mail/check_recent.inc @@ -62,7 +62,7 @@ // get the headers $result_h = $IMAP->list_headers($mbox_name, 1, 'date', 'DESC'); // add to the list - rcmail_js_message_list($result_h, TRUE); + rcmail_js_message_list($result_h, true, false); } } } diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index fae8647..f0d7d6f 100644 --- a/program/steps/mail/func.inc +++ b/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 && !$insert_top) + if ($browser->ie && $replace) $OUTPUT->command('offline_message_list', true); // loop through message headers @@ -456,7 +457,7 @@ $insert_top); } - if ($browser->ie && !$insert_top) + if ($browser->ie && $replace) $OUTPUT->command('offline_message_list', false); } diff --git a/program/steps/mail/move_del.inc b/program/steps/mail/move_del.inc index 673bd80..399d41f 100644 --- a/program/steps/mail/move_del.inc +++ b/program/steps/mail/move_del.inc @@ -108,7 +108,7 @@ if (!$jump_back) { $a_headers = array_slice($a_headers, -$count, $count); } - rcmail_js_message_list($a_headers); + rcmail_js_message_list($a_headers, false, false); } // send response -- Gitblit v1.9.1