From b3e8867c655162cd3f64a3fa2075e45ba562d322 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 21 Sep 2011 09:32:39 +0400 Subject: [PATCH] trigger loadMoreHeadlines in view() when rendering local article only --- viewfeed.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/viewfeed.js b/viewfeed.js index 5658c9f4..d8406f45 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -349,8 +349,20 @@ 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; -- 2.39.5