From: Andrew Dolgov Date: Fri, 10 Aug 2007 17:15:24 +0000 (+0100) Subject: parse_counters: highlight feeds with new articles X-Git-Tag: 1.2.14~78 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=8e9141ed1f5fc00724bb3e256e3986af2d17fdd7;p=tt-rss.git parse_counters: highlight feeds with new articles --- diff --git a/functions.js b/functions.js index 4798c3c2..bcb885ef 100644 --- a/functions.js +++ b/functions.js @@ -686,7 +686,9 @@ function parse_counters(reply, scheduled_call) { if (feedu.innerHTML != ctr && id == getActiveFeedId() && scheduled_call) { viewCurrentFeed(); } - + + var row_needs_hl = (ctr > 0 && ctr > parseInt(feedu.innerHTML)); + feedu.innerHTML = ctr; if (error) { @@ -707,8 +709,12 @@ function parse_counters(reply, scheduled_call) { if (is_selected) { feedr.className = feedr.className + "Selected"; - } - + } + + } + + if (row_needs_hl) { + new Effect.Highlight(feedr, {duration: 0.3, startcolor: "#fff7d5"}); } } else { feedctr.className = "invisible";