diff options
author | alecpl <alec@alec.pl> | 2010-03-23 08:30:20 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-03-23 08:30:20 +0000 |
commit | 519aeda2840e52a3114e09359fb4398f140493ad (patch) | |
tree | f374af5208bbd44c085e0fe8d4863f81e8cb44bf | |
parent | 3fb3792efcd7ce2964b19f6389359c6e725050a0 (diff) |
- Don't underline the parent when thread is expanded
-rw-r--r-- | program/js/app.js | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/program/js/app.js b/program/js/app.js index e92df70d8..ad2ecf50f 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1527,14 +1527,14 @@ function rcube_webmail() var tbody = this.message_list.background; else var tbody = this.gui_objects.messagelist.tBodies[0]; - + var rows = this.message_list.rows; var rowcount = tbody.rows.length; var even = rowcount%2; - + if (!this.env.messages[uid]) this.env.messages[uid] = {}; - + // merge flags over local message object $.extend(this.env.messages[uid], { deleted: flags.deleted?1:0, @@ -1555,35 +1555,33 @@ function rcube_webmail() + (flags.unread ? ' unread' : '') + (flags.deleted ? ' deleted' : '') + (flags.flagged ? ' flagged' : '') - + (flags.unread_children && !flags.unread ? ' unroot' : '') + + (flags.unread_children && !flags.unread && !this.env.autoexpand_threads ? ' unroot' : '') + (this.message_list.in_selection(uid) ? ' selected' : ''); // for performance use DOM instead of jQuery here var row = document.createElement('tr'); row.id = 'rcmrow'+uid; row.className = css_class; - + var icon = this.env.messageicon; if (!flags.unread && flags.unread_children > 0 && this.env.unreadchildrenicon) icon = this.env.unreadchildrenicon; else if (flags.deleted && this.env.deletedicon) icon = this.env.deletedicon; - else if (flags.replied && this.env.repliedicon) - { + else if (flags.replied && this.env.repliedicon) { if (flags.forwarded && this.env.forwardedrepliedicon) icon = this.env.forwardedrepliedicon; else icon = this.env.repliedicon; - } + } else if (flags.forwarded && this.env.forwardedicon) icon = this.env.forwardedicon; else if(flags.unread && this.env.unreadicon) icon = this.env.unreadicon; - + var tree = expando = ''; - if (this.env.threading) - { + if (this.env.threading) { // This assumes that div width is hardcoded to 15px, var width = message.depth * 15; if (message.depth) { @@ -1594,7 +1592,7 @@ function rcube_webmail() } else message.expanded = true; - } + } else if (message.has_children) { if (typeof(message.expanded) == 'undefined' && (this.env.autoexpand_threads == 1 || (this.env.autoexpand_threads == 2 && message.unread_children))) { message.expanded = true; @@ -1606,7 +1604,7 @@ function rcube_webmail() if (message.has_children && !message.depth) expando = '<div id="rcmexpando' + uid + '" class="' + (message.expanded ? 'expanded' : 'collapsed') + '"> </div>'; - } + } tree += icon ? '<img id="msgicn'+uid+'" src="'+icon+'" alt="" class="msgicon" />' : ''; |