From c3ce9c9d165c3979f457230f14f5a9e71c1ad352 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Wed, 30 Apr 2014 04:10:34 -0400
Subject: [PATCH] Fix broken threads structure (#1489845)

---
 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 082a28c..9a92bbb 100644
--- a/program/js/app.js
+++ b/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) &&

--
Gitblit v1.9.1