From 04b252fdec0d4a8ece180e52177849fe8bf89aab Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 21 Sep 2011 09:25:21 +0400 Subject: [PATCH] article_callback: trigger loadMoreHeadlines() when reached last article in the buffer --- viewfeed.js | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); -- 2.39.5