X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Fjot-header.tpl;h=eb74c31dad41466d3ba270aaf088564e053427d4;hb=20d4fda22f26a99e7da930be639874f80ae7060d;hp=29ba385386c7fa838fb78d719bd4b10af1ca315f;hpb=1c9ed08620578bebc8af16e003a2ecef2b8a1f37;p=friendica.git
diff --git a/view/jot-header.tpl b/view/jot-header.tpl
index 29ba385386..eb74c31dad 100644
--- a/view/jot-header.tpl
+++ b/view/jot-header.tpl
@@ -1,68 +1,83 @@
@@ -70,11 +85,13 @@ tinyMCE.init({
var ispublic = '$ispublic';
$(document).ready(function() {
- $("#profile-jot-acl-wrapper").hide();
- $("a#jot-perms-icon").fancybox({
- 'transitionIn' : 'none',
- 'transitionOut' : 'none'
- });
+ /* enable tinymce on focus */
+ $("#profile-jot-text").focus(function(){
+ if (editor) return;
+ $(this).val("");
+ initEditor();
+ });
+
var uploader = new window.AjaxUpload(
'wall-image-upload',
@@ -125,7 +142,7 @@ tinyMCE.init({
if(reply && reply.length) {
reply = bin2hex(reply);
$('#profile-rotator').show();
- $.get('parse_url?url=' + reply, function(data) {
+ $.get('parse_url?binurl=' + reply, function(data) {
tinyMCE.execCommand('mceInsertRawHTML',false,data);
$('#profile-rotator').hide();
});
@@ -168,12 +185,17 @@ tinyMCE.init({
}
}
+
function jotShare(id) {
$('#like-rotator-' + id).show();
$.get('share/' + id, function(data) {
- 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);
+ });
+
});
}
@@ -190,8 +212,11 @@ tinyMCE.init({
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();
+ });
});
}
}