make show more comments work with ajax loaded stuff, i.e. infinitescroll

This commit is contained in:
Hannes Mannerheim 2014-10-20 16:12:35 +02:00
parent 852924799f
commit c2fa3ca846
1 changed files with 1 additions and 2 deletions

View 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) {