From 67dabe1a86fbe7ef5bc157eb3096e1d64f1538f8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 6 Dec 2006 10:11:59 +0100 Subject: tweak category counter display, new styles: .catCtrNoUnread, .catCtrHasUnread --- functions.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'functions.js') 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; } -- cgit v1.2.3