summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2010-03-26 14:56:15 +0100
committerSarven Capadisli <csarven@status.net>2010-03-26 14:57:33 +0100
commit4484c63ff4add940cf3fb6c25d41b5700beb38df (patch)
treea5fc7b77f16f1eeae56a0f9d2d2b5b17ab694610
parent75b2bf2a4e97f4405aaee9b14cc3096a91f26e1b (diff)
Fix for XHR more text behaviour on conversation pages
-rw-r--r--js/util.js9
1 files changed, 5 insertions, 4 deletions
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;