aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHannes Mannerheim <h@nnesmannerhe.im>2014-10-20 16:12:35 +0200
committerHannes Mannerheim <h@nnesmannerhe.im>2014-10-20 16:12:35 +0200
commitc2fa3ca846cf08f366f7cb845b767344497b2494 (patch)
tree166f33b7e1e720323b38a15cd99d9edd16744ee7 /js
parent852924799f6779195ca457296d94e982d41672fa (diff)
downloadgnu-social-c2fa3ca846cf08f366f7cb845b767344497b2494.tar
gnu-social-c2fa3ca846cf08f366f7cb845b767344497b2494.zip
make show more comments work with ajax loaded stuff, i.e. infinitescroll
Diffstat (limited to 'js')
-rw-r--r--js/util.js3
1 files changed, 1 insertions, 2 deletions
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) {