]> git.mxchange.org Git - friendica-addons.git/blob - qcomment/qcomment.js
audon/C/messages.po gelöscht
[friendica-addons.git] / qcomment / qcomment.js
1 function qCommentInsert(obj, id)
2 {
3         let $textarea = $('#comment-edit-text-' + id);
4
5         if ($textarea.val() === '') {
6                 $textarea.addClass('comment-edit-text-full');
7                 $textarea.removeClass('comment-edit-text-empty');
8                 openMenu('comment-edit-submit-wrapper-' + id);
9         }
10
11         var ins = $(obj).val();
12         ins = ins.replace('&lt;', '<');
13         ins = ins.replace('&gt;', '>');
14         ins = ins.replace('&amp;', '&');
15         ins = ins.replace('&quot;', '"');
16         $textarea.val($textarea.val() + ins);
17         $(obj).val('');
18 }