]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - plugins/InfiniteScroll/infinitescroll.js
Merge branch 'testing' into moveaccount
[quix0rs-gnu-social.git] / plugins / InfiniteScroll / infinitescroll.js
1 jQuery(document).ready(function($){
2   $('notices_primary').infinitescroll({
3     debug: false,
4     infiniteScroll  : false,
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      : $('address .url')[0].href+'plugins/InfiniteScroll/ajax-loader.gif',
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"
18     },function(){
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));
25         });
26     });
27 });