]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/InfiniteScroll/infinitescroll.js
Ticket #1968: fix favoriting, reply when using InfiniteScroll
[quix0rs-gnu-social.git] / plugins / InfiniteScroll / infinitescroll.js
index 0c8edce2b09a9035f720925276621e0677fc2f4a..961c3209166be6fdd3f66484f3aef3c479801b85 100644 (file)
@@ -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));
+        });
     });
 });