You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers/web/repo
HesterG a43ea22479
Change form actions to fetch for submit review box (#25219)
Co-author: @wxiaoguang 

Close #25096 

The way to fix it in this PR is to change form submit to fetch using
formData, and add flags to avoid post repeatedly.
Should be able to apply to more forms that have the same issue after
this PR.

In the demo below, 'approve' is clicked several times, and then
'comment' is clicked several time after 'request changes' clicked.

After:


https://github.com/go-gitea/gitea/assets/17645053/beabeb1d-fe66-4b76-b048-4f022b4e83a0


Update: screenshots from /devtest

>
![image](https://user-images.githubusercontent.com/2114189/245680011-ee4231e0-a53d-4c2a-a9c2-71ccd98005cc.png)
> 
>
![image](https://user-images.githubusercontent.com/2114189/245680057-9215d348-63d8-406d-8828-17e171163aaa.png)
> 
>
![image](https://user-images.githubusercontent.com/2114189/245680148-89d7b3d1-d7b6-442f-b69e-eadaee112482.png)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2 years ago
..
actions Support changing labels of Actions runner without re-registration (#24806) 2 years ago
setting Add user level action runners (#24995) 2 years ago
activity.go Implement FSFE REUSE for golang files (#21840) 2 years ago
attachment.go Fix all possible setting error related storages and added some tests (#23911) 2 years ago
blame.go Sort repo topic labels by name (#24123) 2 years ago
branch.go Use the type RefName for all the needed places and fix pull mirror sync bugs (#24634) 2 years ago
cherry_pick.go Rename almost all Ctx functions (#22071) 2 years ago
commit.go Pass 'not' to commit count (#24473) 2 years ago
compare.go Don't list root repository on compare page if pulls not allowed (#24183) 2 years ago
download.go Fix all possible setting error related storages and added some tests (#23911) 2 years ago
editor.go API endpoint for changing/creating/deleting multiple files (#24887) 2 years ago
editor_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
find.go Implement FSFE REUSE for golang files (#21840) 2 years ago
helper.go Refactor authors dropdown (send get request from frontend to avoid long wait time) (#23890) 2 years ago
helper_test.go Refactor authors dropdown (send get request from frontend to avoid long wait time) (#23890) 2 years ago
http.go Redesign Scoped Access Tokens (#24767) 2 years ago
http_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
issue.go Fix `MilestoneIDs` when querying issues (#25125) 2 years ago
issue_content_history.go Move helpers to be prefixed with `gt-` (#22879) 2 years ago
issue_dependency.go Add API to manage issue dependencies (#17935) 2 years ago
issue_label.go Make label templates have consistent behavior and priority (#23749) 2 years ago
issue_label_test.go Make label templates have consistent behavior and priority (#23749) 2 years ago
issue_lock.go Fix improper HTMLURL usages in Go code (#22839) 2 years ago
issue_pin.go Followup to pinned Issues (#24945) 2 years ago
issue_stopwatch.go Speed up HasUserStopwatch & GetActiveStopwatch (#23051) 2 years ago
issue_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
issue_timetrack.go Fix improper HTMLURL usages in Go code (#22839) 2 years ago
issue_watch.go Rewrite logger system (#24726) 2 years ago
lfs.go Introduce path Clean/Join helper functions (#23495) 2 years ago
main_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
middlewares.go Use graceful editorconfig loader to reduce errors when loading malformed editorconfigs (#21257) 2 years ago
migrate.go Make repo migration cancelable and fix various bugs (#24605) 2 years ago
milestone.go Improve Gitea's web context, decouple "issue template" code into service package (#24590) 2 years ago
packages.go Use dynamic package type list (#22263) 2 years ago
patch.go Redirect to the commit page after applying patch (#23056) 2 years ago
projects.go Merge `new project` templates into one (#24985) 2 years ago
projects_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
pull.go Add IsErrRepoFilesAlreadyExist check when fork repo (#24678) 2 years ago
pull_review.go Change form actions to fetch for submit review box (#25219) 2 years ago
release.go fix: release page for empty or non-existing target (#24470) 2 years ago
release_test.go fix: release page for empty or non-existing target (#24470) 2 years ago
render.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go Fix all possible setting error related storages and added some tests (#23911) 2 years ago
search.go Fix improper HTMLURL usages in Go code (#22839) 2 years ago
setting.go Hide 'Mirror Settings' when unneeded, improve hints (#24433) 2 years ago
setting_protected_branch.go Support for status check pattern (#24633) 2 years ago
settings_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
tag.go Add main landmark to templates and adjust titles (#22670) 2 years ago
topic.go Implement FSFE REUSE for golang files (#21840) 2 years ago
treelist.go Implement FSFE REUSE for golang files (#21840) 2 years ago
view.go Fix profile render when the README.md size is larger than 1024 bytes (#25131) 2 years ago
view_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
webhook.go New webhook trigger for receiving Pull Request review requests (#24481) 2 years ago
wiki.go Decouple the different contexts from each other (#24786) 2 years ago
wiki_test.go Make wiki title supports dashes and improve wiki name related features (#24143) 2 years ago