mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-17 14:59:39 +00:00
Backport #29223 (no conflict)
This commit is contained in:
1 parent
7e0299b4fd
commit
d41d367c35
3 files changed
+3
-2
No files matched your search
@@ -58,7 +58,7 @@ function initRepoDiffConversationForm() {
|
||||
const formData = new FormData($form[0]);
|
||||
|
||||
// if the form is submitted by a button, append the button's name and value to the form data
|
||||
const submitter = submitEventSubmitter(e.originalEvent);
|
||||
const submitter = submitEventSubmitter(e);
|
||||
const isSubmittedByButton = (submitter?.nodeName === 'BUTTON') || (submitter?.nodeName === 'INPUT' && submitter.type === 'submit');
|
||||
if (isSubmittedByButton && submitter.name) {
|
||||
formData.append(submitter.name, submitter.value);
|
||||
|
||||
Reference in new issue
Block a user