Newer
Older
$(document).ready(function() {
$('#main_stream').infinitescroll({
navSelector : ".pagination",
nextSelector : ".pagination a.next_page",
itemSelector : "#main_stream .stream_element",
debug: true,
loadingText: "",
loadingImg: '/images/ajax-loader.gif'
scrolled++;
if(scrolled > 2) {
(scrolled === 3) && $(window).unbind('.infscr');
$("a.paginate")
.detach()
.appendTo("#main_stream")
.css("display", "block");
Diaspora.widgets.timeago.updateTimeAgo();
}
})
.css("display", "none");