All, I have the following code:
jQuery('#posts-container-infinite').infinitescroll({
navSelector : "div.pagination",
// selector for the paged navigation (it will be hidden)
nextSelector : "a.pagination-next",
// selector for the NEXT link (to page 2)
itemSelector : "div.post",
// selector for all items you'll retrieve
errorCallback: function() {
jQuery('#posts-container').isotope('reLayout');
},
path: function(){
desturl = '';
return desturl;
}
}
I'm clicking on a link to do some filtering for an isotope. This code is this:
jQuery('.blog-tabs a').click(function(e){
e.preventDefault();
var selector = jQuery(this).attr('data-filter');
$container.isotope({ filter: selector });
});
Is there a way within my click function to set the desturl variable within my function jQuery('#posts-container-infinite').infinitescroll({?
Thanks!
desturlto that variable?