mirror of
https://github.com/friendica/friendica
synced 2024-11-11 00:23:01 +00:00
rework js for shared shared content
After showmore PR is accepted it should also work well with the showmore addon. This resolves #4
This commit is contained in:
parent
b3f5b3c899
commit
502aaabe8c
1 changed files with 7 additions and 2 deletions
|
@ -439,7 +439,12 @@ $(document).ready(function() {
|
||||||
$('li a[href^="message/new"]').attr('rel','modal');
|
$('li a[href^="message/new"]').attr('rel','modal');
|
||||||
|
|
||||||
// put shared content in an own wrapper div
|
// put shared content in an own wrapper div
|
||||||
$('#wall-item-content-{{$item.id}} .shared_content').after('<div class="shared-content-wrapper content-card"></div>');
|
$('#wall-item-content-{{$item.id}} > .shared_content').after('<div class="shared-content-wrapper content-card"></div>');
|
||||||
$("#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_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('<div class="shared-content-wrapper content-card"></div>');
|
||||||
|
$("#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");
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
Loading…
Reference in a new issue