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

further label/vfeed/feed behaviour unification

This commit is contained in:
Andrew Dolgov
2005-09-09 03:47:39 +01:00
parent 392d45635b
commit 8073cce71e
5 changed files with 32 additions and 22 deletions

View File

@@ -318,7 +318,7 @@ function label_counters_callback() {
if (ctr > 0) {
feedctr.className = "odd";
if (!feedr.className.match("Unread") && id != -1) {
if (!feedr.className.match("Unread")) {
feedr.className = feedr.className + "Unread";
}
} else {
@@ -329,9 +329,9 @@ function label_counters_callback() {
}
}
function update_label_counters() {
function update_label_counters(feed) {
if (xmlhttp_ready(xmlhttp_rpc)) {
var query = "backend.php?op=rpc&subop=getLabelCounters";
var query = "backend.php?op=rpc&subop=getLabelCounters&aid=" + feed;
xmlhttp_rpc.open("GET", query, true);
xmlhttp_rpc.onreadystatechange=label_counters_callback;
xmlhttp_rpc.send(null);