From d36d86b9af996f5ebba0df79a3b1b2ba411efc55 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 13 Oct 2011 10:45:10 +0400 Subject: [PATCH] fix loading more headlines into wrong buffer --- feedlist.js | 2 ++ viewfeed.js | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/feedlist.js b/feedlist.js index 70639a8e7..d8dc551d8 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 040ea1d8e..c5a896aa6 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");