From: Hannes Mannerheim Date: Mon, 20 Oct 2014 14:12:35 +0000 (+0200) Subject: make show more comments work with ajax loaded stuff, i.e. infinitescroll X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c2fa3ca846cf08f366f7cb845b767344497b2494;p=quix0rs-gnu-social.git make show more comments work with ajax loaded stuff, i.e. infinitescroll --- diff --git a/js/util.js b/js/util.js index c300a0d93e..6d28470238 100644 --- a/js/util.js +++ b/js/util.js @@ -749,8 +749,7 @@ var SN = { // StatusNet SN.U.NoticeInlineReplyTrigger(notice); return false; }); - $('li.notice-reply-comments a') - .on('click', function () { + $(document).on('click', 'li.notice-reply-comments a', function () { var url = $(this).attr('href'); var area = $(this).closest('.threaded-replies'); $.get(url, {ajax: 1}, function (data, textStatus, xhr) {