Skip to content

Commit

Permalink
Un-fixed the bug with the reply button not working
Browse files Browse the repository at this point in the history
  • Loading branch information
bitWolfy committed Aug 11, 2022
1 parent d6861d2 commit 2bd3171
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/modules/general/Miscellaneous.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export class Miscellaneous extends RE6Module {
$(".re621-forum-post-reply").on('click', (event) => {
event.preventDefault();
const $parent = $(event.target).parents("article.forum-post");
this.quote($parent, "forum", $parent.data("forum-post-id"), $("#topic-response #forum_post_body"), $("a#new-response-link"));
this.quote($parent, "forum", $parent.data("forum-post-id"), $("#forum_post_body_for_"), $("a#new-response-link"));
});
} else if (Page.matches(PageDefinition.post)) {
$(".comment-reply-link").each(function (index, element) {
Expand All @@ -286,7 +286,7 @@ export class Miscellaneous extends RE6Module {
$(".re621-comment-reply").on('click', (event) => {
event.preventDefault();
const $parent = $(event.target).parents("article.comment");
this.quote($parent, "comment", $parent.data("comment-id"), $("div.new-comment #comment_body"), $("a.expand-comment-response"));
this.quote($parent, "comment", $parent.data("comment-id"), $("#comment_body_for_"), $("a.expand-comment-response"));
});
}
}
Expand Down

0 comments on commit 2bd3171

Please sign in to comment.