- messages list fix for IE
| | |
| | | // 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); |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | /** |
| | | * 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; |
| | | |
| | |
| | | $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 |
| | |
| | | $insert_top); |
| | | } |
| | | |
| | | if ($browser->ie && !$insert_top) |
| | | if ($browser->ie && $replace) |
| | | $OUTPUT->command('offline_message_list', false); |
| | | } |
| | | |
| | |
| | | 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 |