From ecf6f0b7db084cdb1337c81a850a2ae2e6674ec5 Mon Sep 17 00:00:00 2001 From: James Campos Date: Sun, 17 Apr 2011 08:26:10 -0700 Subject: [PATCH] fix count classname --- 4chan_x.js | 4 +++- script.coffee | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/4chan_x.js b/4chan_x.js index db6ef3893..8f0b0ad7f 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1426,7 +1426,9 @@ if ($.config('Verbose')) { timer.textContent = '-' + $.config('Interval'); count.textContent = '+' + arr.length; - if (arr.length > 0) { + if (arr.length === 0) { + count.className = ''; + } else { count.className = 'new'; } } diff --git a/script.coffee b/script.coffee index 3db0644eb..cbb189b48 100644 --- a/script.coffee +++ b/script.coffee @@ -1124,7 +1124,9 @@ updater = if $.config 'Verbose' timer.textContent = '-' + $.config 'Interval' count.textContent = '+' + arr.length - if arr.length > 0 + if arr.length is 0 + count.className = '' + else count.className = 'new' #XXX add replies in correct order so /b/acklinks resolve