VRFS-1136 - fix / tweak infinite scroll
on band and musicians page.
This commit is contained in:
parent
98f358d970
commit
b919dbadd8
|
|
@ -76,7 +76,7 @@ module JamRuby
|
|||
PARAM_BAND = :srch_b
|
||||
PARAM_FEED = :srch_f
|
||||
|
||||
F_PER_PAGE = B_PER_PAGE = M_PER_PAGE = 10
|
||||
F_PER_PAGE = B_PER_PAGE = M_PER_PAGE = 20
|
||||
M_MILES_DEFAULT = 500
|
||||
B_MILES_DEFAULT = 0
|
||||
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@
|
|||
$('#band_genre').change(refreshDisplay);
|
||||
$('#band_order_by').change(refreshDisplay);
|
||||
|
||||
$('#band-filter-results').bind('scroll', function() {
|
||||
$('#band-filter-results').closest('.content-body-scroller').bind('scroll', function() {
|
||||
if ($(this).scrollTop() + $(this).innerHeight() >= $(this)[0].scrollHeight) {
|
||||
if (page_num < page_count) {
|
||||
page_num += 1;
|
||||
|
|
|
|||
|
|
@ -222,7 +222,7 @@
|
|||
$('#musician_instrument').change(refreshDisplay);
|
||||
$('#musician_order_by').change(refreshDisplay);
|
||||
|
||||
$('#musician-filter-results').bind('scroll', function() {
|
||||
$('#musician-filter-results').closest('.content-body-scroller').bind('scroll', function() {
|
||||
if ($(this).scrollTop() + $(this).innerHeight() >= $(this)[0].scrollHeight) {
|
||||
if (page_num < page_count) {
|
||||
page_num += 1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue