article_callback: trigger loadMoreHeadlines() when reached last article in the buffer

This commit is contained in:
Andrew Dolgov 2011-09-21 09:25:21 +04:00
parent b67897bff4
commit 04b252fdec
1 changed files with 10 additions and 0 deletions

View File

@ -274,6 +274,16 @@ function article_callback2(transport, id) {
request_counters();
try {
if (!_infscroll_disable &&
$$("#headlines-frame > div[id*=RROW]").last().hasClassName("Selected")) {
loadMoreHeadlines();
}
} catch (e) {
console.warn(e);
}
notify("");
} catch (e) {
exception_error("article_callback2", e, transport);