diff options
author | Andrew Dolgov <[email protected]> | 2005-09-09 04:11:32 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-09-09 04:11:32 +0100 |
commit | e47cfe377bfebd3843ad00ead9eb7a71f6599dd0 (patch) | |
tree | 27a54bb6be1040304c144143ac98669d2b459c60 /functions.js | |
parent | f99321a310213326ff32a450493cbf3c829150c2 (diff) |
fix update_label_counters bug
Diffstat (limited to 'functions.js')
-rw-r--r-- | functions.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/functions.js b/functions.js index 909d34e12..b6b608e71 100644 --- a/functions.js +++ b/functions.js @@ -331,7 +331,12 @@ function label_counters_callback() { function update_label_counters(feed) { if (xmlhttp_ready(xmlhttp_rpc)) { - var query = "backend.php?op=rpc&subop=getLabelCounters&aid=" + feed; + var query = "backend.php?op=rpc&subop=getLabelCounters"; + + if (feed > 0) { + query = query + "&aid=" + feed; + } + xmlhttp_rpc.open("GET", query, true); xmlhttp_rpc.onreadystatechange=label_counters_callback; xmlhttp_rpc.send(null); |