From: Andrew Dolgov Date: Thu, 13 Oct 2011 06:45:10 +0000 (+0400) Subject: fix loading more headlines into wrong buffer X-Git-Tag: 1.5.6~9 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d36d86b9af996f5ebba0df79a3b1b2ba411efc55;p=tt-rss.git fix loading more headlines into wrong buffer --- diff --git a/feedlist.js b/feedlist.js index 70639a8e..d8dc551d 100644 --- a/feedlist.js +++ b/feedlist.js @@ -13,6 +13,8 @@ function viewCategory(cat) { function loadMoreHeadlines() { try { + console.log("loadMoreHeadlines"); + var offset = 0; var view_mode = document.forms["main_toolbar_form"].view_mode.value; diff --git a/viewfeed.js b/viewfeed.js index 040ea1d8..c5a896aa 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -82,7 +82,8 @@ function headlines_callback2(transport, offset, background) { initHeadlinesMenu(); } else { - if (headlines_count > 0) { + + if (headlines_count > 0 && feed_id == getActiveFeedId() && is_cat == activeFeedIsCat()) { console.log("adding some more headlines..."); var c = dijit.byId("headlines-frame");