From: Brion Vibber Date: Fri, 7 Jan 2011 00:53:39 +0000 (-0800) Subject: Ticket #1968: fix favoriting, reply when using InfiniteScroll X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=36711f305a93c21e485da328eca4b4e35e2510db;p=quix0rs-gnu-social.git Ticket #1968: fix favoriting, reply when using InfiniteScroll --- diff --git a/plugins/InfiniteScroll/infinitescroll.js b/plugins/InfiniteScroll/infinitescroll.js index 0c8edce2b0..961c320916 100644 --- a/plugins/InfiniteScroll/infinitescroll.js +++ b/plugins/InfiniteScroll/infinitescroll.js @@ -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)); + }); }); });