fix loading more headlines into wrong buffer

This commit is contained in:
Andrew Dolgov 2011-10-13 10:45:10 +04:00
parent 81f6a57256
commit d36d86b9af
2 changed files with 4 additions and 1 deletions

View 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;

View 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");