1 jQuery(document).ready(function($){
2 $('notices_primary').infinitescroll({
4 infiniteScroll : !infinite_scroll_on_next_only,
5 nextSelector : 'body#public li.nav_next a,'+
6 'body#all li.nav_next a,'+
7 'body#showstream li.nav_next a,'+
8 'body#replies li.nav_next a,'+
9 'body#showfavorites li.nav_next a,'+
10 'body#showgroup li.nav_next a,'+
11 'body#favorited li.nav_next a',
12 loadingImg : ajax_loader_url,
13 text : "<em>Loading the next set of posts...</em>",
14 donetext : "<em>Congratulations, you\'ve reached the end of the Internet.</em>",
15 navSelector : "#pagination",
16 contentSelector : "#notices_primary ol.notices",
17 itemSelector : "#notices_primary ol.notices > li"
19 // Reply button and attachment magic need to be set up
20 // for each new notice.
21 // DO NOT run SN.Init.Notices() which will duplicate stuff.
22 $(this).find('.notice').each(function() {
23 SN.U.NoticeReplyTo($(this));
24 SN.U.NoticeWithAttachment($(this));