summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2021-10-17 04:30:31 +0800
committerGitHub <noreply@github.com>2021-10-16 22:30:31 +0200
commit7333104e89a1e1c89342e2445a849f8c33baba89 (patch)
tree9583612a753156132c71d1fabd78b0c402a65e84
parent1a7473ff459479a7fd3ba62a0b7b04b237565bed (diff)
downloadgitea-7333104e89a1e1c89342e2445a849f8c33baba89.tar.gz
gitea-7333104e89a1e1c89342e2445a849f8c33baba89.zip
Fix the PR review form bug during frontend refactor (#17332)
-rw-r--r--web_src/js/features/repo-diff.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/features/repo-diff.js b/web_src/js/features/repo-diff.js
index 4d6a1a011d..52b68a7d4f 100644
--- a/web_src/js/features/repo-diff.js
+++ b/web_src/js/features/repo-diff.js
@@ -21,7 +21,7 @@ export function initRepoDiffFileViewToggle() {
}
export function initRepoDiffConversationForm() {
- $('.conversation-holder form').on('submit', async (e) => {
+ $(document).on('submit', '.conversation-holder form', async (e) => {
e.preventDefault();
const form = $(e.target);
const newConversationHolder = $(await $.post(form.attr('action'), form.serialize()));