Add autosize to the comment editor

This commit is contained in:
William Karsten 2022-06-21 11:36:41 -05:00
parent 0571dc4f8a
commit e76e005b6f
1 changed files with 6 additions and 2 deletions

View File

@ -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) => {