forked from GNUsocial/gnu-social
Show more links work with AJAX-retrieved HTML
Attachment_ajaxAction has been removed since AttachmentAction handles AJAX calls splendidly.
This commit is contained in:
@@ -862,7 +862,7 @@ var SN = { // StatusNet
|
||||
$(attachment_more[0]).click(function () {
|
||||
var m = $(this);
|
||||
m.addClass(SN.C.S.Processing);
|
||||
$.get(m.attr('href') + '/ajax', null, function (data) {
|
||||
$.get(m.attr('href'), {ajax: 1}, function (data) {
|
||||
m.parent('.entry-content').html($(data).find('#attachment_view .entry-content').html());
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user