X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=js%2Futil.js;h=1320d11b4b71015b8bbac7a58ab00fc71ae7f6c5;hb=7b998f4b2a21b86ae6a3a22e6e7891e2d98d3902;hp=60eeb418f6f2719b82a6b9d96197a840a3e3de48;hpb=72cf8e712d7d34920fc2002a54d5ebaeef514b9f;p=quix0rs-gnu-social.git diff --git a/js/util.js b/js/util.js index 60eeb418f6..1320d11b4b 100644 --- a/js/util.js +++ b/js/util.js @@ -401,10 +401,11 @@ var SN = { // StatusNet var attachment_more = notice.find('.attachment.more'); if (attachment_more.length > 0) { - attachment_more.click(function() { - $(this).addClass(SN.C.S.Processing); - $.get($(this).attr('href')+'/ajax', null, function(data) { - notice.find('.entry-title .entry-content').html($(data).find('#attachment_view .entry-content').html()); + $(attachment_more[0]).click(function() { + var m = $(this); + m.addClass(SN.C.S.Processing); + $.get(m.attr('href')+'/ajax', null, function(data) { + m.parent('.entry-content').html($(data).find('#attachment_view .entry-content').html()); }); return false;