mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 13:23:40 +00:00
19 lines
486 B
JavaScript
19 lines
486 B
JavaScript
|
function qCommentInsert(obj, id)
|
||
|
{
|
||
|
let $textarea = $('#comment-edit-text-' + id);
|
||
|
|
||
|
if ($textarea.val() === '') {
|
||
|
$textarea.addClass('comment-edit-text-full');
|
||
|
$textarea.removeClass('comment-edit-text-empty');
|
||
|
openMenu('comment-edit-submit-wrapper-' + id);
|
||
|
}
|
||
|
|
||
|
var ins = $(obj).val();
|
||
|
ins = ins.replace('<', '<');
|
||
|
ins = ins.replace('>', '>');
|
||
|
ins = ins.replace('&', '&');
|
||
|
ins = ins.replace('"', '"');
|
||
|
$textarea.val($textarea.val() + ins);
|
||
|
$(obj).val('');
|
||
|
}
|