mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 00:55:27 +00:00
[BUG] Fix manual merge button
- Add `form-fetch-action` to indicate that this form POST to an link that returns JSON and thus should be handled by Javascript code. - Found by @fnetx - Regression of https://codeberg.org/forgejo/forgejo/pulls/1793
This commit is contained in:
parent
17ef8145a8
commit
9551c1a6f8
|
@ -375,7 +375,7 @@
|
|||
{{if and $.StillCanManualMerge (not $showGeneralMergeForm)}}
|
||||
<div class="divider"></div>
|
||||
<div class="ui form">
|
||||
<form action="{{.Link}}/merge" method="post">
|
||||
<form action="{{.Link}}/merge" method="post" class="form-fetch-action">
|
||||
{{.CsrfTokenHtml}}
|
||||
<div class="field">
|
||||
<input type="text" name="merge_commit_id" placeholder="{{ctx.Locale.Tr "repo.pulls.merge_commit_id"}}">
|
||||
|
|
Loading…
Reference in a new issue