fix loading more headlines into wrong buffer

master
Andrew Dolgov 13 years ago
parent 81f6a57256
commit d36d86b9af

@ -13,6 +13,8 @@ function viewCategory(cat) {
function loadMoreHeadlines() { function loadMoreHeadlines() {
try { try {
console.log("loadMoreHeadlines");
var offset = 0; var offset = 0;
var view_mode = document.forms["main_toolbar_form"].view_mode.value; var view_mode = document.forms["main_toolbar_form"].view_mode.value;

@ -82,7 +82,8 @@ function headlines_callback2(transport, offset, background) {
initHeadlinesMenu(); initHeadlinesMenu();
} else { } else {
if (headlines_count > 0) {
if (headlines_count > 0 && feed_id == getActiveFeedId() && is_cat == activeFeedIsCat()) {
console.log("adding some more headlines..."); console.log("adding some more headlines...");
var c = dijit.byId("headlines-frame"); var c = dijit.byId("headlines-frame");

Loading…
Cancel
Save