summaryrefslogtreecommitdiff
path: root/feedlist.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-09-29 08:23:41 +0100
committerAndrew Dolgov <[email protected]>2006-09-29 08:23:41 +0100
commitd05514a49a7490cb64e3ebbcfc12bddab63eb414 (patch)
tree7ad5f597dfced1b686f103c7dc1a258dfd74e917 /feedlist.js
parent106689b065e5cbec64d0dc1a6ac446fb96ca3ad9 (diff)
fix id handling in getRelativeFeedId; allow on-catchup-show-next wrapping (closes #108)
Diffstat (limited to 'feedlist.js')
-rw-r--r--feedlist.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/feedlist.js b/feedlist.js
index cc36587a2..5ee3acd9f 100644
--- a/feedlist.js
+++ b/feedlist.js
@@ -62,6 +62,11 @@ function viewfeed(feed, subop, is_cat, subop_param) {
var next_unread_feed = getRelativeFeedId(feedlist,
getActiveFeedId(), "next", true);
+ if (!next_unread_feed) {
+ next_unread_feed = getRelativeFeedId(feedlist,
+ -1, "next", true);
+ }
+
var show_next_feed = getInitParam("on_catchup_show_next_feed") == "1";
if (next_unread_feed && show_next_feed && !activeFeedIsCat()) {