]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
make show more comments work with ajax loaded stuff, i.e. infinitescroll
authorHannes Mannerheim <h@nnesmannerhe.im>
Mon, 20 Oct 2014 14:12:35 +0000 (16:12 +0200)
committerHannes Mannerheim <h@nnesmannerhe.im>
Mon, 20 Oct 2014 14:12:35 +0000 (16:12 +0200)
js/util.js

index c300a0d93edf792547f0cbd4ff22114c2682b41a..6d2847023891ef4e31493733d3ba6d21491a9111 100644 (file)
@@ -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) {