diff options
author | zotlabs <mike@macgirvin.com> | 2017-09-05 18:32:37 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-09-05 18:32:37 -0700 |
commit | 45eb61bcf079557094fed8714afc994f1120e6db (patch) | |
tree | c524eed94b4edebae1a641b3f95f888d21a07f06 /view/tpl/jot-header.tpl | |
parent | 80400d719145c843a1bb80a34d5815d15ffc5893 (diff) | |
download | volse-hubzilla-45eb61bcf079557094fed8714afc994f1120e6db.tar.gz volse-hubzilla-45eb61bcf079557094fed8714afc994f1120e6db.tar.bz2 volse-hubzilla-45eb61bcf079557094fed8714afc994f1120e6db.zip |
provide sharing of cards
Diffstat (limited to 'view/tpl/jot-header.tpl')
-rwxr-xr-x | view/tpl/jot-header.tpl | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl index 91c30423d..2d37b3ca2 100755 --- a/view/tpl/jot-header.tpl +++ b/view/tpl/jot-header.tpl @@ -247,18 +247,23 @@ var activeCommentText = ''; } - function jotShare(id) { - if ($('#jot-popup').length != 0) $('#jot-popup').show(); - - $('#like-rotator-' + id).spin('tiny'); - $.get('{{$baseurl}}/share/' + id, function(data) { - if (!editor) $("#profile-jot-text").val(""); - initEditor(function(){ - addeditortext(data); - $('#like-rotator-' + id).spin(false); - $(window).scrollTop(0); + function jotShare(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).spin('tiny'); + $.get('{{$baseurl}}/share/' + id, function(data) { + if (!editor) $("#profile-jot-text").val(""); + initEditor(function(){ + addeditortext(data); + $('#like-rotator-' + id).spin(false); + $(window).scrollTop(0); + }); }); - }); + } } function linkdropper(event) { |