Add autosize to the comment editor
This commit is contained in:
parent
0571dc4f8a
commit
e76e005b6f
|
@ -653,8 +653,12 @@ onPageLoad(() => {
|
|||
const commentId = comment.getAttribute('data-shortid')
|
||||
fetch('/comments/' + commentId + '/edit')
|
||||
.then(response => {
|
||||
response.text().then(text => replace(comment, text));
|
||||
});
|
||||
response.text().then(text => {
|
||||
replace(comment, text);
|
||||
autosize(document.querySelectorAll('textarea'));
|
||||
});
|
||||
});
|
||||
autosize(document.querySelectorAll('textarea'));
|
||||
});
|
||||
|
||||
on("click", "a.comment_deletor", (event) => {
|
||||
|
|
Loading…
Reference in New Issue