Aleksander Machniak
2014-04-30 c3ce9c9d165c3979f457230f14f5a9e71c1ad352
Fix broken threads structure (#1489845)
1 files modified
5 ■■■■■ changed files
program/js/app.js 5 ●●●●● patch | view | raw | blame | history
program/js/app.js
@@ -1890,12 +1890,13 @@
      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 @@
    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;">&nbsp;&nbsp;</span>';
        tree += '<span id="rcmtab' + msg_id + '" class="branch" style="width:' + (message.depth * 15) + 'px;">&nbsp;&nbsp;</span>';
        if ((rows[message.parent_uid] && rows[message.parent_uid].expanded === false)
          || ((this.env.autoexpand_threads == 0 || this.env.autoexpand_threads == 2) &&