I use an infinite-ajax-scroll ( https://github.com/webcreate/infinite-ajax-scroll ) plugin with filtering. I have filters that work with infinite scrolling, but my problem is that whenever the scroll gets the end of the results for one filter, it will no longer scroll even after selecting another filter. Therefore, I need to reset the scroll of the infinate when the filter is selected, but I can not find anywhere in the documentation on how to reset this, and I am not very good at jQuery and therefore I can not figure it out.
I also have certain filters that do not need hidden scrolling, and also to disable them.
$('.filter a').click(function() {
var $this = $(this);
var URL = $this.attr('href');
loadMoreItems(URL, $this);
});
return false;
});
jQuery.ias({
container: '#container',
item: '.element',
pagination: '.paginate',
next: '.paginate a',
loader: '<img src="public/img/ajax-loader.gif"/>',
noneleft: 'No more discounts for your selection',
triggerPageThreshold: '10',
trigger: "Load more items",
history: false,
thresholdMargin: -350
});