Show more links work with AJAX-retrieved HTML

Attachment_ajaxAction has been removed since AttachmentAction handles
AJAX calls splendidly.
This commit is contained in:
Mikael Nordfeldth
2014-05-19 00:54:43 +02:00
parent 202eaa53e0
commit d7c40e77b2
6 changed files with 6 additions and 87 deletions

View File

@@ -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());
});