I need remove the paginator when we’re done like at the demo http://www.infinite-scroll.com/trigger.html
// remove the paginator when we're done.
$(document).ajaxError(function(e,xhr,opt){
if (xhr.status == 404) $('a#next').remove();
});
But this code doesn’t work. I have mentioned that at the demo the version of Infinite Scroll is 1.5.100504 but the latest versiont that I have downloaded here is 2.0b2.110713 So, any help please?
Maybe this can help me:
state: {
isDuringAjax: false,
isInvalidPage: false,
isDestroyed: false,
isDone: false, // For when it goes all the way through the archive.
isPaused: false,
currPage: 1
},
?
Your site never sends back a 404 http status code therefore this line will never work:
The “No more posts to load” message is coming from the “finishedMsg” property of your infinitescroll initialization.
If you were to add
to the loading property of the config:
it should probably do what you need. It’s hard to say though since this version of the plugin is not documented very well.