ui: auto-resize editor by default

This commit is contained in:
undefined committed 2021-05-07 13:43:28 +08:00
1 parent cd3f8af392
commit 34cd4d62e9
5 files changed
+9 -17

No files matched your search

@@ -50,9 +50,7 @@ function onClickDummyBox(ev) {
const $evTarget = $(ev.currentTarget);
if (CommentBox.get($evTarget)) {
CommentBox
.get($evTarget)
.focus();
CommentBox.get($evTarget).focus();
return;
}
@@ -125,9 +123,7 @@ async function onCommentClickEdit(mode, ev) {
const $evTarget = $(ev.currentTarget);
if (CommentBox.get($evTarget)) {
CommentBox
.get($evTarget)
.focus();
CommentBox.get($evTarget).focus();
return;
}
@@ -174,9 +170,7 @@ async function onCommentClickDelete(type, ev) {
<p>${i18n(message)}</p>
</div>`,
}).open();
if (action !== 'yes') {
return;
}
if (action !== 'yes') return;
const $evTarget = $(ev.currentTarget);
const form = JSON.parse($evTarget.attr('data-form'));