X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Fjot-header.tpl;h=77e5bc4bcd0fca73eddc65f7315465c11bc0922b;hb=9b93bd25218dc0b4a5e477c3a64d6f74a51a9d21;hp=25f2736c7f788eb8cc3f66b520f967fabd376aef;hpb=20807ab8b4e0d1180b7fe74624a58b80b6cfc52a;p=friendica.git diff --git a/view/jot-header.tpl b/view/jot-header.tpl index 25f2736c7f..77e5bc4bcd 100644 --- a/view/jot-header.tpl +++ b/view/jot-header.tpl @@ -30,7 +30,7 @@ tinyMCE.init({ //Character count ed.onKeyUp.add(function(ed, e) { var txt = tinyMCE.activeEditor.getContent(); - var textlen = txt.length; + textlen = txt.length; if(textlen != 0 && $('#jot-perms-icon').is('.unlock')) { $('#profile-jot-desc').html(ispublic); } @@ -79,6 +79,18 @@ tinyMCE.init({ } } ); + var file_uploader = new window.AjaxUpload( + 'wall-file-upload', + { action: 'wall_attach/$nickname', + name: 'userfile', + onSubmit: function(file,ext) { $('#profile-rotator').show(); }, + onComplete: function(file,response) { + tinyMCE.execCommand('mceInsertRawHTML',false,response); + $('#profile-rotator').hide(); + } + } + ); + $('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() { var selstr; $('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {