]> git.wh0rd.org - tt-rss.git/blobdiff - functions.js
add some async counters handling
[tt-rss.git] / functions.js
index 0d839019934dd9f1c9dee79de7c33c4d90e2132d..da33ba42e286576d08a402a2fa0039df16d5970c 100644 (file)
@@ -712,7 +712,8 @@ function parse_counters(reply, scheduled_call) {
                                        }
 
                                        if (row_needs_hl) { 
-                                               new Effect.Highlight(feedr, {duration: 1, startcolor: "#fff7d5"});
+                                               new Effect.Highlight(feedr, {duration: 1, startcolor: "#fff7d5",
+                                                       queue: { position:'end', scope: 'EFQ-' + id, limit: 1 } } );
                                        }
                                } else {
                                        feedctr.className = "invisible";
@@ -790,6 +791,17 @@ function parse_counters_reply(xmlhttp, scheduled_call) {
 
 }
 
+function all_counters_callback2(transport) {
+       try {
+               debug("<b>all_counters_callback2 IN: " + transport + "</b>");
+               parse_counters_reply(transport);
+               debug("<b>all_counters_callback2 OUT: " + transport + "</b>");
+
+       } catch (e) {
+               exception_error("all_counters_callback2", e);
+       }
+}
+
 function all_counters_callback() {
        if (xmlhttp_rpc.readyState == 4) {
                try {