diff options
author | Andrew Dolgov <[email protected]> | 2010-11-12 01:00:51 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-12 01:00:51 +0300 |
commit | 47fb32b06d29827f87fb06f51cc1bf5e21688187 (patch) | |
tree | 6bd7ac6706f7b197abb8faae53c0b100b637a1d3 /tt-rss.js | |
parent | a918f5f9cafcb886d7cab89a4b9ffb24ae3c9b78 (diff) |
make forced counter update not count as scheduled one
Diffstat (limited to 'tt-rss.js')
-rw-r--r-- | tt-rss.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; } |