diff options
author | Andrew Dolgov <[email protected]> | 2010-01-04 12:12:31 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-01-04 12:12:31 +0300 |
commit | 6f068202d7e472be431ddde436e4623a6a6d20b9 (patch) | |
tree | def3bc900dae12a7c409783b80c9c57703802d0c /viewfeed.js | |
parent | 938052bac8c59922706cc026ddb9644dc59b2646 (diff) |
rework the way DEFAULT_ARTICLE_LIMIT works, remove limit toolbar dropdown (bump schema)
Diffstat (limited to 'viewfeed.js')
-rw-r--r-- | viewfeed.js | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/viewfeed.js b/viewfeed.js index 99bab234e..ad7e14553 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -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(); } } |