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:
14
functions.js
14
functions.js
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user