diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-04-30 10:10:34 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-04-30 10:10:34 +0200 |
commit | c3ce9c9d165c3979f457230f14f5a9e71c1ad352 (patch) | |
tree | c60b76f2c198e72088aab5764834139371f408b4 /program/js/app.js | |
parent | 204977598a26d5b95a1909fbce0c902c84437ff6 (diff) |
Fix broken threads structure (#1489845)
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js index 082a28ceb..9a92bbbde 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1890,12 +1890,13 @@ function rcube_webmail() list = this.message_list, rows = list.rows, message = this.env.messages[uid], + msg_id = this.html_identifier(uid,true), row_class = 'message' + (!flags.seen ? ' unread' : '') + (flags.deleted ? ' deleted' : '') + (flags.flagged ? ' flagged' : '') + (message.selected ? ' selected' : ''), - row = { cols:[], style:{}, id:'rcmrow'+this.html_identifier(uid,true), uid:uid }; + row = { cols:[], style:{}, id:'rcmrow'+msg_id, uid:uid }; // message status icons css_class = 'msgicon'; @@ -1921,7 +1922,7 @@ function rcube_webmail() if (this.env.threading) { if (message.depth) { // This assumes that div width is hardcoded to 15px, - tree += '<span id="rcmtab' + row.id + '" class="branch" style="width:' + (message.depth * 15) + 'px;"> </span>'; + tree += '<span id="rcmtab' + msg_id + '" class="branch" style="width:' + (message.depth * 15) + 'px;"> </span>'; if ((rows[message.parent_uid] && rows[message.parent_uid].expanded === false) || ((this.env.autoexpand_threads == 0 || this.env.autoexpand_threads == 2) && |