return;
// Don't start another request until this one finishes
$(container).attr('data-infinite-content-href', null);
+ $(container).append('<img src="/assets/ajax-loader.gif" class="infinite-scroller-spinner"></img>');
+ console.log("appended?");
$.ajax(src,
{dataType: 'json',
type: 'GET',
$(this.container).attr('data-infinite-content-href', this.src);
}).
done(function(data, status, jqxhr) {
+ $(this.container).find(".infinite-scroller-spinner").detach();
$(this.container).append(data.content);
$(this.container).attr('data-infinite-content-href', data.next_page_href);
});