mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-19 13:21:28 +00:00
trigger loadMoreHeadlines in view() when rendering local article only
This commit is contained in:
14
viewfeed.js
14
viewfeed.js
@@ -349,8 +349,20 @@ function view(id) {
|
|||||||
|
|
||||||
// if we don't need to request any relative ids, we might as well skip
|
// if we don't need to request any relative ids, we might as well skip
|
||||||
// the server roundtrip altogether
|
// the server roundtrip altogether
|
||||||
if (cids_to_request.length == 0)
|
if (cids_to_request.length == 0) {
|
||||||
|
|
||||||
|
try {
|
||||||
|
if (!_infscroll_disable &&
|
||||||
|
$$("#headlines-frame > div[id*=RROW]").last().hasClassName("Selected")) {
|
||||||
|
|
||||||
|
loadMoreHeadlines();
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
console.warn(e);
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
last_requested_article = id;
|
last_requested_article = id;
|
||||||
|
|||||||
Reference in New Issue
Block a user