From 29c1797493f44d2677cab9b35ce6d879f020a15e Mon Sep 17 00:00:00 2001 From: zotlabs Date: Wed, 6 Feb 2019 17:26:09 -0800 Subject: work on repeat/share for Hubzilla --- view/tpl/conv_item.tpl | 3 +++ view/tpl/conv_list.tpl | 3 +++ view/tpl/jot-header.tpl | 11 ++++++++++- 3 files changed, 16 insertions(+), 1 deletion(-) (limited to 'view') diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl index 69e09b272..428529de2 100755 --- a/view/tpl/conv_item.tpl +++ b/view/tpl/conv_item.tpl @@ -146,6 +146,9 @@ {{if $item.share}} {{$item.share.0}} {{/if}} + {{if $item.embed}} + {{$item.embed.0}} + {{/if}} {{if $item.plink}} {{$item.plink.title}} {{/if}} diff --git a/view/tpl/conv_list.tpl b/view/tpl/conv_list.tpl index 28e120d17..63e74b159 100755 --- a/view/tpl/conv_list.tpl +++ b/view/tpl/conv_list.tpl @@ -139,6 +139,9 @@ {{if $item.share}} {{$item.share.0}} {{/if}} + {{if $item.embed}} + {{$item.embed.0}} + {{/if}} {{if $item.plink}} {{$item.plink.title}} {{/if}} diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl index b286b6071..42537f5e3 100755 --- a/view/tpl/jot-header.tpl +++ b/view/tpl/jot-header.tpl @@ -200,14 +200,23 @@ var activeCommentText = ''; function jotShare(id,post_type) { + $('#like-rotator-' + id).show(); + $.get('{{$baseurl}}/share/' + id, function(data) { + $('#like-rotator-' + id).hide(); + notificationsUpdate(); + }); + } + + function jotEmbed(id,post_type) { if(post_type == 6) { window.location.href = 'rpost?f=&post_id='+id; } else { + if ($('#jot-popup').length != 0) $('#jot-popup').show(); $('#like-rotator-' + id).show(); - $.get('{{$baseurl}}/share/' + id, function(data) { + $.get('{{$baseurl}}/embed/' + id, function(data) { if (!editor) $("#profile-jot-text").val(""); initEditor(function(){ addeditortext(data); -- cgit v1.2.3