diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-06-16 08:32:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-16 08:32:43 +0200 |
commit | b71cb7acdc8840c9fc16b496c90a048051d15823 (patch) | |
tree | fae5454a2c9f1a7d510255260b562519681841c0 /templates/repo/issue/new_form.tmpl | |
parent | Show if File is Executable (#25287) (diff) | |
download | forgejo-b71cb7acdc8840c9fc16b496c90a048051d15823.tar.xz forgejo-b71cb7acdc8840c9fc16b496c90a048051d15823.zip |
Use fetch to send requests to create issues/comments (#25258)
Follow #23290
Network error won't make content lost. And this is a much better
approach than "loading-button".
The UI is not perfect and there are still some TODOs, they can be done
in following PRs, not a must in this PR's scope.
<details>
![image](https://github.com/go-gitea/gitea/assets/2114189/c94ba958-aa46-4747-8ddf-6584deeed25c)
</details>
Diffstat (limited to 'templates/repo/issue/new_form.tmpl')
-rw-r--r-- | templates/repo/issue/new_form.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/issue/new_form.tmpl b/templates/repo/issue/new_form.tmpl index 00da68eb06..70c45b37c8 100644 --- a/templates/repo/issue/new_form.tmpl +++ b/templates/repo/issue/new_form.tmpl @@ -1,4 +1,4 @@ -<form class="issue-content ui comment form" id="new-issue" action="{{.Link}}" method="post"> +<form class="issue-content ui comment form form-fetch-action" id="new-issue" action="{{.Link}}" method="post"> {{.CsrfTokenHtml}} {{if .Flash}} <div class="sixteen wide column"> @@ -35,7 +35,7 @@ {{template "repo/issue/comment_tab" .}} {{end}} <div class="text right"> - <button class="ui green button loading-button" tabindex="6"> + <button class="ui green button" tabindex="6"> {{if .PageIsComparePull}} {{.locale.Tr "repo.pulls.create"}} {{else}} |