|
|
@ -33,6 +33,8 @@ function loadMoreHeadlines() {
|
|
|
|
offset = num_all;
|
|
|
|
offset = num_all;
|
|
|
|
} else if (view_mode == "unread") {
|
|
|
|
} else if (view_mode == "unread") {
|
|
|
|
offset = unread_in_buffer;
|
|
|
|
offset = unread_in_buffer;
|
|
|
|
|
|
|
|
} else if (_search_query) {
|
|
|
|
|
|
|
|
offset = num_all;
|
|
|
|
} else if (view_mode == "adaptive") {
|
|
|
|
} else if (view_mode == "adaptive") {
|
|
|
|
if (num_unread > 0)
|
|
|
|
if (num_unread > 0)
|
|
|
|
offset = unread_in_buffer;
|
|
|
|
offset = unread_in_buffer;
|
|
|
@ -42,6 +44,8 @@ function loadMoreHeadlines() {
|
|
|
|
offset = num_all;
|
|
|
|
offset = num_all;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log("offset: " + offset);
|
|
|
|
|
|
|
|
|
|
|
|
viewfeed(getActiveFeedId(), '', activeFeedIsCat(), offset, false, true);
|
|
|
|
viewfeed(getActiveFeedId(), '', activeFeedIsCat(), offset, false, true);
|
|
|
|
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
} catch (e) {
|
|
|
@ -71,6 +75,8 @@ function viewfeed(feed, method, is_cat, offset, background, infscroll_req) {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
cached_headlines = cache_get("feed:" + feed + ":" + is_cat);
|
|
|
|
cached_headlines = cache_get("feed:" + feed + ":" + is_cat);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (_search_query) _search_query = false;
|
|
|
|
|
|
|
|
|
|
|
|
// switching to a different feed, we might as well catchup stuff visible
|
|
|
|
// switching to a different feed, we might as well catchup stuff visible
|
|
|
|
// in headlines buffer (if any)
|
|
|
|
// in headlines buffer (if any)
|
|
|
|
// disabled for now because this behavior is considered confusing -fox
|
|
|
|
// disabled for now because this behavior is considered confusing -fox
|
|
|
@ -149,7 +155,7 @@ function viewfeed(feed, method, is_cat, offset, background, infscroll_req) {
|
|
|
|
if (_search_query) {
|
|
|
|
if (_search_query) {
|
|
|
|
force_nocache = true;
|
|
|
|
force_nocache = true;
|
|
|
|
query = query + "&" + _search_query;
|
|
|
|
query = query + "&" + _search_query;
|
|
|
|
_search_query = false;
|
|
|
|
//_search_query = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (offset != 0) {
|
|
|
|
if (offset != 0) {
|
|
|
|