summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-04-23 06:15:21 +0000
committeralecpl <alec@alec.pl>2009-04-23 06:15:21 +0000
commit7a723522945b8954681171aa012b7ee1431a45cd (patch)
treef810ecbeb55f445f884303135bd24290524a3e1d /program
parentb659c3e2424a5602808cf3d48f4044a3975c9dd2 (diff)
- messages list fix for IE
Diffstat (limited to 'program')
-rw-r--r--program/steps/mail/check_recent.inc2
-rw-r--r--program/steps/mail/func.inc7
-rw-r--r--program/steps/mail/move_del.inc2
3 files changed, 6 insertions, 5 deletions
diff --git a/program/steps/mail/check_recent.inc b/program/steps/mail/check_recent.inc
index a0668537d..8d757d440 100644
--- a/program/steps/mail/check_recent.inc
+++ b/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/program/steps/mail/func.inc b/program/steps/mail/func.inc
index fae864757..f0d7d6f01 100644
--- a/program/steps/mail/func.inc
+++ b/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/program/steps/mail/move_del.inc b/program/steps/mail/move_del.inc
index 673bd800b..399d41f65 100644
--- a/program/steps/mail/move_del.inc
+++ b/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