disable infinite scrolling when Limit == 0 (closes #143)
This commit is contained in:
parent
e7e66b38d3
commit
4764c27ef8
|
@ -75,7 +75,7 @@ function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) {
|
||||||
var toolbar_form = document.forms["main_toolbar_form"];
|
var toolbar_form = document.forms["main_toolbar_form"];
|
||||||
var toolbar_query = Form.serialize("main_toolbar_form");
|
var toolbar_query = Form.serialize("main_toolbar_form");
|
||||||
|
|
||||||
if (document.forms["main_toolbar_form"].query) {
|
if (toolbar_form.query) {
|
||||||
toolbar_form.query.value = "";
|
toolbar_form.query.value = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1248,12 +1248,19 @@ function headlines_scroll_handler() {
|
||||||
|
|
||||||
var e = document.getElementById("headlinesInnerContainer");
|
var e = document.getElementById("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) {
|
||||||
if (e.scrollTop + e.offsetHeight > e.scrollHeight - 50) {
|
if (e.scrollTop + e.offsetHeight > e.scrollHeight - 50) {
|
||||||
if (!_infscroll_disable) {
|
if (!_infscroll_disable) {
|
||||||
debug("more cowbell!");
|
debug("more cowbell!");
|
||||||
viewNextFeedPage();
|
viewNextFeedPage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
exception_error("headlines_scroll_handler", e);
|
exception_error("headlines_scroll_handler", e);
|
||||||
|
|
Loading…
Reference in New Issue