]> source.dussan.org Git - gitea.git/commitdiff
Fix the PR review form bug during frontend refactor (#17332)
authorwxiaoguang <wxiaoguang@gmail.com>
Sat, 16 Oct 2021 20:30:31 +0000 (04:30 +0800)
committerGitHub <noreply@github.com>
Sat, 16 Oct 2021 20:30:31 +0000 (22:30 +0200)
web_src/js/features/repo-diff.js

index 4d6a1a011d3f06519e1a5a5c4b21484d4ea948b0..52b68a7d4fe6e6fea9c989cebe5050209362410d 100644 (file)
@@ -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()));