From 94f904bf66112f1d8dab7fc36dd48706bed4473b Mon Sep 17 00:00:00 2001 From: Sarven Capadisli Date: Fri, 26 Mar 2010 14:56:15 +0100 Subject: Fix for XHR more text behaviour on conversation pages --- js/util.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'js') diff --git a/js/util.js b/js/util.js index 60eeb418f..1320d11b4 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; -- cgit v1.2.3-54-g00ecf