mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-02 17:11:05 +00:00
d497379988
- Move settings HTML to template - Move Javascript to addon file - Remove obsolete custom CSS
18 lines
486 B
JavaScript
18 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('');
|
|
}
|