From fe0a51ac83c03c9377edbfc8f8f315b5f2d87d6d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 28 Aug 2012 16:07:02 +0400 Subject: [PATCH] loadMoreHeadlines: revert to old behaviour for adaptive --- js/feedlist.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/feedlist.js b/js/feedlist.js index aec93862..e838562a 100644 --- a/js/feedlist.js +++ b/js/feedlist.js @@ -21,6 +21,7 @@ function loadMoreHeadlines() { var view_mode = document.forms["main_toolbar_form"].view_mode.value; var unread_in_buffer = $$("#headlines-frame > div[id*=RROW][class*=Unread]").length; var num_all = $$("#headlines-frame > div[id*=RROW]").length; + var num_unread = getFeedUnread(getActiveFeedId(), activeFeedIsCat()); // TODO implement marked & published @@ -33,7 +34,7 @@ function loadMoreHeadlines() { } else if (view_mode == "unread") { offset = unread_in_buffer; } else if (view_mode == "adaptive") { - if (unread_in_buffer > 0) + if (num_unread > 0) offset = unread_in_buffer; else offset = num_all; -- 2.39.5