]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix loading more headlines into wrong buffer
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 13 Oct 2011 06:45:10 +0000 (10:45 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 13 Oct 2011 06:45:10 +0000 (10:45 +0400)
feedlist.js
viewfeed.js

index 70639a8e7509ade8384f5d2a54d5995239bc5a3e..d8dc551d8a180e3caba12d6930c176f080819f6e 100644 (file)
@@ -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;
index 040ea1d8ed4ed354475569284cc12161e0b6fade..c5a896aa6689a8e506f1429022a357a367d80d3b 100644 (file)
@@ -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");