summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-09-09 03:47:39 +0100
committerAndrew Dolgov <[email protected]>2005-09-09 03:47:39 +0100
commit8073cce71eb6120bac0e21adb670fdfc6f05fad1 (patch)
treef6985fae6d25130fc829388e14d99077d44cc087 /functions.js
parent392d45635b488073e247f179cdbc8f94d9aa5d04 (diff)
further label/vfeed/feed behaviour unification
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/functions.js b/functions.js
index 8e7b99957..909d34e12 100644
--- a/functions.js
+++ b/functions.js
@@ -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);