summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-12 01:00:51 +0300
committerAndrew Dolgov <[email protected]>2010-11-12 01:00:51 +0300
commit47fb32b06d29827f87fb06f51cc1bf5e21688187 (patch)
tree6bd7ac6706f7b197abb8faae53c0b100b637a1d3 /tt-rss.js
parenta918f5f9cafcb886d7cab89a4b9ffb24ae3c9b78 (diff)
make forced counter update not count as scheduled one
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/tt-rss.js b/tt-rss.js
index 4226fd8da..b09f880d5 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -203,11 +203,11 @@ function timeout() {
new Ajax.Request("backend.php", {
parameters: query_str,
onComplete: function(transport) {
- handle_rpc_reply(transport, true);
+ handle_rpc_reply(transport, !_force_scheduled_update);
+ _force_scheduled_update = false;
} });
last_scheduled_update = ts;
- _force_scheduled_update = false;
}
} catch (e) {
@@ -1291,6 +1291,7 @@ function handle_rpc_reply(transport, scheduled_call) {
message = message.firstChild.nodeValue;
if (message == "UPDATE_COUNTERS") {
+ console.log("need to refresh counters...");
setInitParam("last_article_id", -1);
_force_scheduled_update = true;
}