From 7b83a6940f023cd40760c1b9e9945b34a1ec2a6c Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 21 Apr 2009 09:43:45 -0600 Subject: [PATCH] Ticket #7296: Don't show thread graphics when in subject sort --- imp/js/src/DimpBase.js | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/imp/js/src/DimpBase.js b/imp/js/src/DimpBase.js index bdc33c74c..fd437053a 100644 --- a/imp/js/src/DimpBase.js +++ b/imp/js/src/DimpBase.js @@ -438,21 +438,24 @@ var DimpBase = { }.bind(this), onContent: function(row) { var bg, re, u, - thread = this.viewport.getMetaData('thread') || $H(); + thread = this.viewport.getMetaData('thread') || $H(), + tsort = (this.viewport.getMetaData('sortby') == DIMP.conf.sortthread); row.subjectdata = row.status = ''; row.subjecttitle = row.subject; // Add thread graphics - u = thread.get(row.imapuid); - if (u) { - $R(0, u.length, true).each(function(i) { - var c = u.charAt(i); - if (!this.tcache[c]) { - this.tcache[c] = ''; - } - row.subjectdata += this.tcache[c]; - }, this); + if (tsort) { + u = thread.get(row.imapuid); + if (u) { + $R(0, u.length, true).each(function(i) { + var c = u.charAt(i); + if (!this.tcache[c]) { + this.tcache[c] = ''; + } + row.subjectdata += this.tcache[c]; + }, this); + } } /* Generate the status flags. */ -- 2.11.0