1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 05:45:56 +00:00

add some async counters handling

This commit is contained in:
Andrew Dolgov
2007-08-24 05:04:55 +01:00
parent dcf7fd08d1
commit 1341ea0dbe
3 changed files with 89 additions and 63 deletions

View 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 {