trigger loadMoreHeadlines in view() when rendering local article only
This commit is contained in:
parent
04b252fdec
commit
b3e8867c65
14
viewfeed.js
14
viewfeed.js
|
@ -349,9 +349,21 @@ function view(id) {
|
|||
|
||||
// if we don't need to request any relative ids, we might as well skip
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
|
||||
last_requested_article = id;
|
||||
|
||||
|
|
Loading…
Reference in New Issue