diff --git a/templates/wall_thread.tpl b/templates/wall_thread.tpl index 395b8f2b2..256a20333 100644 --- a/templates/wall_thread.tpl +++ b/templates/wall_thread.tpl @@ -439,7 +439,12 @@ $(document).ready(function() { $('li a[href^="message/new"]').attr('rel','modal'); // put shared content in an own wrapper div - $('#wall-item-content-{{$item.id}} .shared_content').after('
'); - $("#wall-item-content-{{$item.id}} .shared_header, #wall-item-content-{{$item.id}} .shared_content").appendTo("#wall-item-content-{{$item.id}} .shared-content-wrapper"); + $('#wall-item-content-{{$item.id}} > .shared_content').after('
'); + $("#wall-item-content-{{$item.id}} > .shared_header, #wall-item-content-{{$item.id}} > .shared_content").appendTo("#wall-item-content-{{$item.id}} .shared-content-wrapper"); + + // put shared content in an own wrapper (with showmore addon) + $('#wall-item-content-{{$item.id}} .showmore-content > .shared_content').parent().after('
'); + $("#wall-item-content-{{$item.id}} .showmore-teaser > .shared_header, #wall-item-content-{{$item.id}} .showmore-content > .shared_header").parent().appendTo("#wall-item-content-{{$item.id}} .shared-content-wrapper"); + }); \ No newline at end of file