forked from GNUsocial/gnu-social
Fix for XHR more text behaviour on conversation pages
This commit is contained in:
parent
36a8e8e8a3
commit
94f904bf66
@ -401,10 +401,11 @@ var SN = { // StatusNet
|
|||||||
|
|
||||||
var attachment_more = notice.find('.attachment.more');
|
var attachment_more = notice.find('.attachment.more');
|
||||||
if (attachment_more.length > 0) {
|
if (attachment_more.length > 0) {
|
||||||
attachment_more.click(function() {
|
$(attachment_more[0]).click(function() {
|
||||||
$(this).addClass(SN.C.S.Processing);
|
var m = $(this);
|
||||||
$.get($(this).attr('href')+'/ajax', null, function(data) {
|
m.addClass(SN.C.S.Processing);
|
||||||
notice.find('.entry-title .entry-content').html($(data).find('#attachment_view .entry-content').html());
|
$.get(m.attr('href')+'/ajax', null, function(data) {
|
||||||
|
m.parent('.entry-content').html($(data).find('#attachment_view .entry-content').html());
|
||||||
});
|
});
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user