summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-12-06 10:11:59 +0100
committerAndrew Dolgov <[email protected]>2006-12-06 10:11:59 +0100
commit67dabe1a86fbe7ef5bc157eb3096e1d64f1538f8 (patch)
tree8a8326797a22c29b4160ced1493ad1a89f981a75 /functions.js
parent3ac2f3c76716e93de91b9f17786fe235905b2c1d (diff)
tweak category counter display, new styles: .catCtrNoUnread, .catCtrHasUnread
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/functions.js b/functions.js
index c3158e34e..a3a46a9c9 100644
--- a/functions.js
+++ b/functions.js
@@ -529,7 +529,12 @@ function parse_counters(reply, scheduled_call) {
if (t == "category") {
var catctr = document.getElementById("FCATCTR-" + id);
if (catctr) {
- catctr.innerHTML = "(" + ctr + " unread)";
+ catctr.innerHTML = "(" + ctr + ")";
+ if (ctr > 0) {
+ catctr.className = "catCtrHasUnread";
+ } else {
+ catctr.className = "catCtrNoUnread";
+ }
}
continue;
}