]> git.wh0rd.org Git - tt-rss.git/commitdiff
loadMoreHeadlines: revert to old behaviour for adaptive
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 28 Aug 2012 12:07:02 +0000 (16:07 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 28 Aug 2012 12:07:02 +0000 (16:07 +0400)
js/feedlist.js

index aec93862fb745d3146d8500ea4a0f54e19344c8c..e838562a5484365d159a40c0fdcd8fe4f1b6776e 100644 (file)
@@ -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;