parse_counters: highlight feeds with new articles
This commit is contained in:
parent
7a27bf8344
commit
8e9141ed1f
12
functions.js
12
functions.js
|
@ -686,7 +686,9 @@ function parse_counters(reply, scheduled_call) {
|
||||||
if (feedu.innerHTML != ctr && id == getActiveFeedId() && scheduled_call) {
|
if (feedu.innerHTML != ctr && id == getActiveFeedId() && scheduled_call) {
|
||||||
viewCurrentFeed();
|
viewCurrentFeed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var row_needs_hl = (ctr > 0 && ctr > parseInt(feedu.innerHTML));
|
||||||
|
|
||||||
feedu.innerHTML = ctr;
|
feedu.innerHTML = ctr;
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
|
@ -707,8 +709,12 @@ function parse_counters(reply, scheduled_call) {
|
||||||
|
|
||||||
if (is_selected) {
|
if (is_selected) {
|
||||||
feedr.className = feedr.className + "Selected";
|
feedr.className = feedr.className + "Selected";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if (row_needs_hl) {
|
||||||
|
new Effect.Highlight(feedr, {duration: 0.3, startcolor: "#fff7d5"});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
feedctr.className = "invisible";
|
feedctr.className = "invisible";
|
||||||
|
|
Loading…
Reference in New Issue