MixItUp Pagination: Load More / Infinite Scroll Demos
As reported by a customer, the load more button is disabled prematurely when the total number of items is not exactly divisible my the limit increment.
On line 90 (line 181 of Infinite Scroll), change to:
if (state.activePagination.limit >= state.totalMatching) {
// Disable button
loadMoreEl.disabled = true;
} else if (loadMoreEl.disabled) {
// Enable button
loadMoreEl.disabled = false;
}
Sorry, just wondering where the Load More / Infinite Scroll Demos live right now? Looked all over, totally not seeing it. Thanks!
They're in the pagination package. Because the premium extensions aren't open source, you'd need to purchase the extension to get access to the demos.
Ah, makes sense now. I have a legacy license, but not this one so I can't see those yet. Either way, I'm guessing this functionality is implied by this line on the Pagination page,
"Dynamically generated controls and page statistics based on the current filter and page limit values".
Maybe for some Google juice, might be good to add on something like, "e.g. Load More / Infinite Scroll" as this is something that really puts MixItUp above the crowd.
I'll give it some thought. TBH, those two features are kind of a hack on top of pagination, and perhaps not what someone would expect if they were searching for that functionality, so I'll need to word it carefuly.
Thank you for this, worked like a charm!
Hi, I'm looking for a Infinite Scroll pagination feature. Can I check whether that is a part of the pagination package please as I can't see anything about it on the MixItUp Pagination page.