mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 18:04:26 +02:00
[qcomment] Restore feature
- Move settings HTML to template - Move Javascript to addon file - Remove obsolete custom CSS
This commit is contained in:
parent
ec22a12365
commit
d497379988
4 changed files with 57 additions and 39 deletions
18
qcomment/qcomment.js
Normal file
18
qcomment/qcomment.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
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('');
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue