mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix discussion reaction
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -215,7 +215,7 @@ class DiscussionDetailHandler extends DiscussionHandler {
|
|||||||
this.back();
|
this.back();
|
||||||
}
|
}
|
||||||
|
|
||||||
@param('type', Types.Range(['did', 'drid']))
|
@param('nodeType', Types.Range(['did', 'drid']))
|
||||||
@param('id', Types.ObjectId)
|
@param('id', Types.ObjectId)
|
||||||
@param('emoji', Types.Emoji)
|
@param('emoji', Types.Emoji)
|
||||||
@param('reverse', Types.Boolean)
|
@param('reverse', Types.Boolean)
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ const reactionPage = new AutoloadPage('reactionPage', () => {
|
|||||||
const target = $(e.currentTarget);
|
const target = $(e.currentTarget);
|
||||||
const res = await request.post('', {
|
const res = await request.post('', {
|
||||||
operation: 'reaction',
|
operation: 'reaction',
|
||||||
type: target.parent().data('type'),
|
nodeType: target.parent().data('type'),
|
||||||
id: target.parent().data(target.parent().data('type')),
|
id: target.parent().data(target.parent().data('type')),
|
||||||
emoji: target.text().trim().split(' ')[0],
|
emoji: target.text().trim().split(' ')[0],
|
||||||
reverse: target.hasClass('active'),
|
reverse: target.hasClass('active'),
|
||||||
|
|||||||
Reference in new issue
Block a user