From 36711f305a93c21e485da328eca4b4e35e2510db Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 6 Jan 2011 16:53:39 -0800 Subject: [PATCH] Ticket #1968: fix favoriting, reply when using InfiniteScroll --- plugins/InfiniteScroll/infinitescroll.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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)); + }); }); }); -- 2.39.5