X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fdispy%2Fjot-header.tpl;h=1555950561a56e94d0cd30105949c16a4fc085c9;hb=dfba0f13c8c30598f21f1480e2dbfc66c41c9aa9;hp=5401f92ddb982410817a07a89289b5811128b24e;hpb=a4f7e8e8fed19d93bb112e901b0e91473e5e9bbf;p=friendica.git diff --git a/view/theme/dispy/jot-header.tpl b/view/theme/dispy/jot-header.tpl index 5401f92ddb..1555950561 100644 --- a/view/theme/dispy/jot-header.tpl +++ b/view/theme/dispy/jot-header.tpl @@ -209,11 +209,12 @@ function initEditor(cb) { function jotShare(id) { $('#like-rotator-' + id).show(); $.get('share/' + id, function(data) { - initEditor(function(){ - tinyMCE.execCommand('mceInsertRawHTML',false,data); - $('#like-rotator-' + id).hide(); - $(window).scrollTop(0); - }) + if (!editor) $("#profile-jot-text").val(""); + initEditor(function(){ + tinyMCE.execCommand('mceInsertRawHTML',false,data); + $('#like-rotator-' + id).hide(); + $(window).scrollTop(0); + }); }); } @@ -230,8 +231,11 @@ function initEditor(cb) { if(reply && reply.length) { $('#profile-rotator').show(); $.get('parse_url?url=' + reply, function(data) { - tinyMCE.execCommand('mceInsertRawHTML',false,data); - $('#profile-rotator').hide(); + if (!editor) $("#profile-jot-text").val(""); + initEditor(function(){ + tinyMCE.execCommand('mceInsertRawHTML',false,data); + $('#profile-rotator').hide(); + }); }); } }