summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-08-10 18:15:24 +0100
committerAndrew Dolgov <[email protected]>2007-08-10 18:15:24 +0100
commit8e9141ed1f5fc00724bb3e256e3986af2d17fdd7 (patch)
tree1b22fe3b75e2e5b858facb6c19c10a64a226aef2 /functions.js
parent7a27bf834400be7c1146b6d96ee52f969c30e551 (diff)
parse_counters: highlight feeds with new articles
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/functions.js b/functions.js
index 4798c3c20..bcb885ef3 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";