summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-05-18 07:39:31 +0000
committeralecpl <alec@alec.pl>2010-05-18 07:39:31 +0000
commit0e7b66357de62abad98dbd8b1c06ac5de3d4575c (patch)
tree33b87f3aecda2a33febe46692db72622b6acfe20 /program/steps/mail
parent283a37fb11ef5631bd1f8bcb2a3a4a7f70594ab3 (diff)
- Added threads tree icons
- css/js fixes and improvements in (messages) list code
Diffstat (limited to 'program/steps/mail')
-rw-r--r--program/steps/mail/func.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 01b7c1f00..00a8edf95 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -285,6 +285,8 @@ function rcmail_js_message_list($a_headers, $insert_top=FALSE, $head_replace=FAL
if ($header->depth)
$a_msg_flags['depth'] = $header->depth;
+ else if ($header->has_children)
+ $roots[] = $header->uid;
if ($header->parent_uid)
$a_msg_flags['parent_uid'] = $header->parent_uid;
if ($header->has_children)
@@ -311,6 +313,10 @@ function rcmail_js_message_list($a_headers, $insert_top=FALSE, $head_replace=FAL
$a_msg_flags,
$insert_top);
}
+
+ if ($IMAP->threading && $a_headers) {
+ $OUTPUT->command('init_threads', (array) $roots);
+ }
}