make .attachment.more ajax work with ajax-loaded content, i.e. infiniteScroll
This commit is contained in:
parent
c2fa3ca846
commit
5ca625e470
20
js/util.js
20
js/util.js
|
@ -856,18 +856,16 @@ var SN = { // StatusNet
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var attachment_more = notice.find('.attachment.more');
|
$(document).on('click','.attachment.more',function () {
|
||||||
if (attachment_more.length > 0) {
|
var m = $(this);
|
||||||
$(attachment_more[0]).click(function () {
|
m.addClass(SN.C.S.Processing);
|
||||||
var m = $(this);
|
$.get(m.attr('href'), {ajax: 1}, function (data) {
|
||||||
m.addClass(SN.C.S.Processing);
|
m.parent('.e-content').html($(data).find('#attachment_view .e-content').html());
|
||||||
$.get(m.attr('href'), {ajax: 1}, function (data) {
|
});
|
||||||
m.parent('.e-content').html($(data).find('#attachment_view .e-content').html());
|
|
||||||
});
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
return false;
|
|
||||||
}).attr('title', SN.msg('showmore_tooltip'));
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user