mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-17 17:01:30 +00:00
parse_counters: highlight feeds with new articles
This commit is contained in:
@@ -687,6 +687,8 @@ function parse_counters(reply, scheduled_call) {
|
|||||||
viewCurrentFeed();
|
viewCurrentFeed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var row_needs_hl = (ctr > 0 && ctr > parseInt(feedu.innerHTML));
|
||||||
|
|
||||||
feedu.innerHTML = ctr;
|
feedu.innerHTML = ctr;
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
@@ -710,6 +712,10 @@ function parse_counters(reply, scheduled_call) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (row_needs_hl) {
|
||||||
|
new Effect.Highlight(feedr, {duration: 0.3, startcolor: "#fff7d5"});
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
feedctr.className = "invisible";
|
feedctr.className = "invisible";
|
||||||
feedr.className = feedr.className.replace("Unread", "");
|
feedr.className = feedr.className.replace("Unread", "");
|
||||||
|
|||||||
Reference in New Issue
Block a user