aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/jot-header.tpl
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-05 18:32:37 -0700
committerzotlabs <mike@macgirvin.com>2017-09-05 18:32:37 -0700
commit45eb61bcf079557094fed8714afc994f1120e6db (patch)
treec524eed94b4edebae1a641b3f95f888d21a07f06 /view/tpl/jot-header.tpl
parent80400d719145c843a1bb80a34d5815d15ffc5893 (diff)
downloadvolse-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-xview/tpl/jot-header.tpl27
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) {