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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user