]> git.wh0rd.org - tt-rss.git/blobdiff - functions.js
check for failures to request counters in async way after viewfeed/view
[tt-rss.git] / functions.js
index b3673b03f56bc4ac034053bfb2bc30f57410b56e..456b65af758a321a557a933daabb6db784df36e4 100644 (file)
@@ -2,6 +2,7 @@ var hotkeys_enabled = true;
 var xmlhttp_rpc = Ajax.getTransport();
 var notify_silent = false;
 var last_progress_point = 0;
+var async_counters_work = false;
 
 /* add method to remove element from array */
 
@@ -626,8 +627,10 @@ function parse_counters_reply(transport, scheduled_call) {
 
 }
 
-function all_counters_callback2(transport) {
+function all_counters_callback2(transport, async_call) {
        try {
+               if (async_call) async_counters_work = true;
+
                debug("<b>all_counters_callback2 IN: " + transport + "</b>");
                parse_counters_reply(transport);
                debug("<b>all_counters_callback2 OUT: " + transport + "</b>");