summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-09-11 11:47:33 +0200
committerAleksander Machniak <alec@alec.pl>2013-09-11 11:47:33 +0200
commite02bfe08315d8a7e60b587b716ac5db78a63ffd3 (patch)
tree08000edb3353948f0808b5c2a0451b5dafd4937e /program
parent63ec68b026a560a2af7dc3d1e89fa095464b6e5b (diff)
Fix expanded thread root message styling after refreshing messages list (#1489327)
Diffstat (limited to 'program')
-rw-r--r--program/js/app.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index c99dc7edb..337875431 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -1786,7 +1786,6 @@ function rcube_webmail()
+ (!flags.seen ? ' unread' : '')
+ (flags.deleted ? ' deleted' : '')
+ (flags.flagged ? ' flagged' : '')
- + (flags.unread_children && flags.seen && !this.env.autoexpand_threads ? ' unroot' : '')
+ (message.selected ? ' selected' : ''),
// for performance use DOM instead of jQuery here
row = document.createElement('tr');
@@ -1839,6 +1838,9 @@ function rcube_webmail()
expando = '<div id="rcmexpando' + uid + '" class="' + (message.expanded ? 'expanded' : 'collapsed') + '">&nbsp;&nbsp;</div>';
row_class += ' thread' + (message.expanded? ' expanded' : '');
}
+
+ if (flags.unread_children && flags.seen && !message.expanded)
+ row_class += ' unroot';
}
tree += '<span id="msgicn'+uid+'" class="'+css_class+'">&nbsp;</span>';