summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-08-11 04:34:40 +0100
committerAndrew Dolgov <[email protected]>2007-08-11 04:34:40 +0100
commit07a678636ab8a0972acf739b27bb365f2f0648bd (patch)
treef4fb41cd653a750f5ae003046d67a4d54dca2334 /functions.js
parent731b05f4a236cbdf7043464d5aa9eee1bee95114 (diff)
getRelativeFeedId: fix
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/functions.js b/functions.js
index 15ebdb816..dc55b2c17 100644
--- a/functions.js
+++ b/functions.js
@@ -714,7 +714,7 @@ function parse_counters(reply, scheduled_call) {
}
if (row_needs_hl) {
- new Effect.Highlight(feedr, {duration: 0.3, startcolor: "#fff7d5"});
+ new Effect.Highlight(feedr, {duration: 1, startcolor: "#fff7d5"});
}
} else {
feedctr.className = "invisible";
@@ -1235,11 +1235,15 @@ function getRelativeFeedId(list, id, direction, unread_only) {
var idx = feeds.indexOf(id);
if (idx != -1 && idx < feeds.length) {
return feeds[idx+1];
+ } else {
+ return getRelativeFeedId(list, false, direction, unread_only);
}
} else {
var idx = feeds.indexOf(id);
if (idx > 0) {
return feeds[idx-1];
+ } else {
+ return getRelativeFeedId(list, false, direction, unread_only);
}
}