diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-04-23 06:15:21 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-04-23 06:15:21 +0000 |
| commit | d782dff87c2c89ce85ea3f215d6c90970c751308 (patch) | |
| tree | 3f1273780c8ecc4ca5fd8d14caf286694ceb4332 | |
| parent | a5490ca8369ebbcb67d23ce9ae8a9b79db77f3a0 (diff) | |
- messages list fix for IE
git-svn-id: https://svn.roundcube.net/trunk@2414 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/steps/mail/check_recent.inc | 2 | ||||
| -rw-r--r-- | roundcubemail/program/steps/mail/func.inc | 7 | ||||
| -rw-r--r-- | roundcubemail/program/steps/mail/move_del.inc | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/roundcubemail/program/steps/mail/check_recent.inc b/roundcubemail/program/steps/mail/check_recent.inc index a0668537d..8d757d440 100644 --- a/roundcubemail/program/steps/mail/check_recent.inc +++ b/roundcubemail/program/steps/mail/check_recent.inc @@ -62,7 +62,7 @@ foreach ($a_mailboxes as $mbox_name) { // 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/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index fae864757..f0d7d6f01 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/program/steps/mail/func.inc @@ -374,8 +374,9 @@ function rcmail_message_list($attrib) /** * 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 @@ function rcmail_js_message_list($a_headers, $insert_top=FALSE) $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 @@ function rcmail_js_message_list($a_headers, $insert_top=FALSE) $insert_top); } - if ($browser->ie && !$insert_top) + if ($browser->ie && $replace) $OUTPUT->command('offline_message_list', false); } diff --git a/roundcubemail/program/steps/mail/move_del.inc b/roundcubemail/program/steps/mail/move_del.inc index 673bd800b..399d41f65 100644 --- a/roundcubemail/program/steps/mail/move_del.inc +++ b/roundcubemail/program/steps/mail/move_del.inc @@ -108,7 +108,7 @@ if ($addrows && $_POST['_from']!='show' && ($jump_back || $nextpage_count > 0)) 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 |
