From: Andrew Dolgov Date: Wed, 21 Sep 2011 05:25:21 +0000 (+0400) Subject: article_callback: trigger loadMoreHeadlines() when reached last article in the buffer X-Git-Tag: 1.5.6~20 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=04b252fdec0d4a8ece180e52177849fe8bf89aab;p=tt-rss.git article_callback: trigger loadMoreHeadlines() when reached last article in the buffer --- diff --git a/viewfeed.js b/viewfeed.js index 83fe934c..5658c9f4 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -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);