diff options
Diffstat (limited to 'functions.js')
-rw-r--r-- | functions.js | 6 |
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); |