mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-19 17:01:30 +00:00
disable infinite scrolling when Limit == 0 (closes #143)
This commit is contained in:
15
viewfeed.js
15
viewfeed.js
@@ -1248,10 +1248,17 @@ function headlines_scroll_handler() {
|
||||
|
||||
var e = document.getElementById("headlinesInnerContainer");
|
||||
|
||||
if (e.scrollTop + e.offsetHeight > e.scrollHeight - 50) {
|
||||
if (!_infscroll_disable) {
|
||||
debug("more cowbell!");
|
||||
viewNextFeedPage();
|
||||
// don't do infinite scrolling when Limit == All
|
||||
|
||||
var toolbar_form = document.forms["main_toolbar_form"];
|
||||
|
||||
var limit = toolbar_form.limit[toolbar_form.limit.selectedIndex];
|
||||
if (limit.value != 0) {
|
||||
if (e.scrollTop + e.offsetHeight > e.scrollHeight - 50) {
|
||||
if (!_infscroll_disable) {
|
||||
debug("more cowbell!");
|
||||
viewNextFeedPage();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user