1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 06:25:58 +00:00

display number of unread articles in category

This commit is contained in:
Andrew Dolgov
2005-12-13 10:27:41 +01:00
parent fe14aeb84c
commit 280ee9a339
2 changed files with 54 additions and 11 deletions

View File

@@ -358,6 +358,7 @@ function all_counters_callback() {
for (var l = 0; l < reply.childNodes.length; l++) {
var id = reply.childNodes[l].getAttribute("id");
var t = reply.childNodes[l].getAttribute("type");
var ctr = reply.childNodes[l].getAttribute("counter");
if (id == "global-unread") {
@@ -365,6 +366,12 @@ function all_counters_callback() {
parent.updateTitle();
continue;
}
if (t == "category") {
var catctr = f_document.getElementById("FCATCTR-" + id);
catctr.innerHTML = "(" + ctr + " unread)";
continue;
}
var feedctr = f_document.getElementById("FEEDCTR-" + id);
var feedu = f_document.getElementById("FEEDU-" + id);
@@ -374,7 +381,7 @@ function all_counters_callback() {
feedu.innerHTML = ctr;
if (ctr > 0) {
if (ctr > 0) {
feedctr.className = "odd";
if (!feedr.className.match("Unread")) {
var is_selected = feedr.className.match("Selected");