mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix comment action
This commit is contained in:
1 parent
25f1a4ce81
commit
5e4cdd3164
5 files changed
+15
-15
No files matched your search
@@ -64,9 +64,6 @@ $downvote-color = red
|
||||
// FIXME doesn't work on IE 11
|
||||
display: flex
|
||||
|
||||
>.media__body
|
||||
width: calc(100% - (50px + 0.625rem))
|
||||
|
||||
&:last-child
|
||||
>.media
|
||||
padding-bottom: 0
|
||||
|
||||
@@ -111,6 +111,7 @@ async function onCommentClickReplyComment(ev, options: any = {}) {
|
||||
}
|
||||
|
||||
async function onCommentClickReplyReply(ev) {
|
||||
console.log(ev);
|
||||
const $evTarget = $(ev.currentTarget);
|
||||
const $mediaBody = $evTarget.closest('.media__body');
|
||||
const uid = $mediaBody
|
||||
@@ -119,7 +120,7 @@ async function onCommentClickReplyReply(ev) {
|
||||
|
||||
$evTarget
|
||||
.closest('.dczcomments__item')
|
||||
.find('[name="dczcomments__op-reply-comment"]').eq(0)
|
||||
.find('[data-op="reply"][data-type="comment"]').eq(0)
|
||||
.trigger('click', { initialText: `@[](/user/${uid.trim()}) ` });
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user