aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/jot-header.tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-02-07 09:34:22 +0100
committerMario Vavti <mario@mariovavti.com>2019-02-07 09:34:22 +0100
commitd70f0092f7369a87117898716893c16f8a09d4fe (patch)
treeadfa9afd69580d55af6daebcc388aa146a513f62 /view/tpl/jot-header.tpl
parent860dead9851116617a275fbe08e861ce5d8642f9 (diff)
parent7f6e4a9744b7b5293e1f0d25db8bb3ad17cd256d (diff)
downloadvolse-hubzilla-d70f0092f7369a87117898716893c16f8a09d4fe.tar.gz
volse-hubzilla-d70f0092f7369a87117898716893c16f8a09d4fe.tar.bz2
volse-hubzilla-d70f0092f7369a87117898716893c16f8a09d4fe.zip
Merge remote-tracking branch 'mike/master' into dev
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);