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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user