1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 07:55:56 +00:00

tweak category counter display, new styles: .catCtrNoUnread, .catCtrHasUnread

This commit is contained in:
Andrew Dolgov
2006-12-06 10:11:59 +01:00
parent 3ac2f3c767
commit 67dabe1a86
3 changed files with 16 additions and 5 deletions

View File

@@ -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;
}