article_callback: trigger loadMoreHeadlines() when reached last article in the buffer
This commit is contained in:
parent
b67897bff4
commit
04b252fdec
10
viewfeed.js
10
viewfeed.js
|
@ -274,6 +274,16 @@ function article_callback2(transport, id) {
|
||||||
|
|
||||||
request_counters();
|
request_counters();
|
||||||
|
|
||||||
|
try {
|
||||||
|
if (!_infscroll_disable &&
|
||||||
|
$$("#headlines-frame > div[id*=RROW]").last().hasClassName("Selected")) {
|
||||||
|
|
||||||
|
loadMoreHeadlines();
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
console.warn(e);
|
||||||
|
}
|
||||||
|
|
||||||
notify("");
|
notify("");
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
exception_error("article_callback2", e, transport);
|
exception_error("article_callback2", e, transport);
|
||||||
|
|
Loading…
Reference in New Issue