mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: auto-resize editor by default
This commit is contained in:
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'));
|
||||
|
||||
Reference in new issue
Block a user