forked from GNUsocial/gnu-social
make .attachment.more ajax work with ajax-loaded content, i.e. infiniteScroll
This commit is contained in:
parent
c2fa3ca846
commit
5ca625e470
|
@ -856,9 +856,7 @@ var SN = { // StatusNet
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var attachment_more = notice.find('.attachment.more');
|
$(document).on('click','.attachment.more',function () {
|
||||||
if (attachment_more.length > 0) {
|
|
||||||
$(attachment_more[0]).click(function () {
|
|
||||||
var m = $(this);
|
var m = $(this);
|
||||||
m.addClass(SN.C.S.Processing);
|
m.addClass(SN.C.S.Processing);
|
||||||
$.get(m.attr('href'), {ajax: 1}, function (data) {
|
$.get(m.attr('href'), {ajax: 1}, function (data) {
|
||||||
|
@ -866,8 +864,8 @@ var SN = { // StatusNet
|
||||||
});
|
});
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}).attr('title', SN.msg('showmore_tooltip'));
|
});
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue