1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-22 06:41:29 +00:00

fix id handling in getRelativeFeedId; allow on-catchup-show-next wrapping (closes #108)

This commit is contained in:
Andrew Dolgov
2006-09-29 08:23:41 +01:00
parent 106689b065
commit d05514a49a
3 changed files with 20 additions and 11 deletions

View File

@@ -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()) {