parse_counters: highlight feeds with new articles
This commit is contained in:
parent
7a27bf8344
commit
8e9141ed1f
|
@ -687,6 +687,8 @@ function parse_counters(reply, scheduled_call) {
|
|||
viewCurrentFeed();
|
||||
}
|
||||
|
||||
var row_needs_hl = (ctr > 0 && ctr > parseInt(feedu.innerHTML));
|
||||
|
||||
feedu.innerHTML = ctr;
|
||||
|
||||
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 {
|
||||
feedctr.className = "invisible";
|
||||
feedr.className = feedr.className.replace("Unread", "");
|
||||
|
|
Loading…
Reference in New Issue