aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/jot-header.tpl
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-02-06 17:26:09 -0800
committerzotlabs <mike@macgirvin.com>2019-02-06 17:26:09 -0800
commit29c1797493f44d2677cab9b35ce6d879f020a15e (patch)
treed3b4531fc527eecea9acf5e6ebc4ae35cbd327da /view/tpl/jot-header.tpl
parent518ceb53a8de5b4ee375947721d56f7a43621a61 (diff)
downloadvolse-hubzilla-29c1797493f44d2677cab9b35ce6d879f020a15e.tar.gz
volse-hubzilla-29c1797493f44d2677cab9b35ce6d879f020a15e.tar.bz2
volse-hubzilla-29c1797493f44d2677cab9b35ce6d879f020a15e.zip
work on repeat/share for Hubzilla
Diffstat (limited to 'view/tpl/jot-header.tpl')
-rwxr-xr-xview/tpl/jot-header.tpl11
1 files changed, 10 insertions, 1 deletions
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);