X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FInfiniteScroll%2Finfinitescroll.js;h=961c3209166be6fdd3f66484f3aef3c479801b85;hb=66dee8a966ffd37e6a3750630cd7bfa50a9f4fc9;hp=0dafef6d52f2bf68ba08f672c94b20b2cd62f132;hpb=bac2d80c919a78d5cafd57f712872a90cda04847;p=quix0rs-gnu-social.git diff --git a/plugins/InfiniteScroll/infinitescroll.js b/plugins/InfiniteScroll/infinitescroll.js index 0dafef6d52..961c320916 100644 --- a/plugins/InfiniteScroll/infinitescroll.js +++ b/plugins/InfiniteScroll/infinitescroll.js @@ -1,6 +1,6 @@ jQuery(document).ready(function($){ $('notices_primary').infinitescroll({ - debug: true, + debug: false, infiniteScroll : false, nextSelector : 'body#public li.nav_next a,'+ 'body#all li.nav_next a,'+ @@ -16,6 +16,12 @@ jQuery(document).ready(function($){ contentSelector : "#notices_primary ol.notices", itemSelector : "#notices_primary ol.notices li" },function(){ - SN.Init.Notices(); + // Reply button and attachment magic need to be set up + // for each new notice. + // DO NOT run SN.Init.Notices() which will duplicate stuff. + $(this).find('.notice').each(function() { + SN.U.NoticeReplyTo($(this)); + SN.U.NoticeWithAttachment($(this)); + }); }); });