summaryrefslogtreecommitdiff
path: root/js/viewfeed.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2014-07-25 12:14:06 +0400
committerAndrew Dolgov <[email protected]>2014-07-25 12:14:06 +0400
commitb7c20a3759ef456a065748f249837edb1264b864 (patch)
tree2dee9803ffc4a60ccf4df9dd37265050da0152a7 /js/viewfeed.js
parent2032566579d66cafcd92dd700f298f842bd5319e (diff)
another implementation of pull 386 (show next when finished reading)
Diffstat (limited to 'js/viewfeed.js')
-rw-r--r--js/viewfeed.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js
index 9672c47ba..846c87a8f 100644
--- a/js/viewfeed.js
+++ b/js/viewfeed.js
@@ -1350,6 +1350,21 @@ function headlines_scroll_handler(e) {
catchup_timeout_id = window.setTimeout('catchupBatchedArticles()',
500);
}
+ } else if (_infscroll_disable) {
+ var child = $$("#headlines-frame div[id*=RROW]").last();
+
+ if (child && $("headlines-frame").scrollTop >
+ (child.offsetTop + child.offsetHeight/2)) {
+
+ console.log("we seem to be at an end");
+
+ if (getInitParam("on_catchup_show_next_feed") == "1") {
+ var is_cat = activeFeedIsCat();
+ var nuf = getNextUnreadFeed(getActiveFeedId(), is_cat);
+
+ if (nuf) viewfeed(nuf, '', is_cat);
+ }
+ }
}
}