1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 23:15:57 +00:00

rework the way DEFAULT_ARTICLE_LIMIT works, remove limit toolbar dropdown (bump schema)

This commit is contained in:
Andrew Dolgov
2010-01-04 12:12:31 +03:00
parent 938052bac8
commit 6f068202d7
10 changed files with 41 additions and 45 deletions

View File

@@ -2011,21 +2011,15 @@ function headlines_scroll_handler() {
var e = $("headlinesInnerContainer");
// 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) {
debug((e.scrollTop + e.offsetHeight) + " vs " + e.scrollHeight + " dis? " +
_infscroll_disable);
debug((e.scrollTop + e.offsetHeight) + " vs " + e.scrollHeight + " dis? " +
_infscroll_disable);
if (e.scrollTop + e.offsetHeight > e.scrollHeight - 100) {
if (!_infscroll_disable) {
debug("more cowbell!");
viewNextFeedPage();
}
if (e.scrollTop + e.offsetHeight > e.scrollHeight - 100) {
if (!_infscroll_disable) {
debug("more cowbell!");
viewNextFeedPage();
}
}