0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-29 14:56:20 +01:00
gitea/web_src/js/features
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>
2023-06-14 16:01:37 +08:00
..
admin
comp Change form actions to fetch for submit review box (#25219) 2023-06-14 16:01:37 +08:00
captcha.js
citation.js
clipboard.js
codeeditor.js
colorpicker.js
common-global.js Change form actions to fetch for submit review box (#25219) 2023-06-14 16:01:37 +08:00
common-issue-list.js
common-issue-list.test.js
common-organization.js
contextpopup.js
copycontent.js
dropzone.js
emoji.js
eventsource.sharedworker.js
file-fold.js
heatmap.js
imagediff.js
install.js
notification.js Rework notifications list (#24812) 2023-05-25 02:31:26 +00:00
org-team.js
pull-view-file.js Improve accessibility when (re-)viewing files (#24817) 2023-05-21 20:47:41 +00:00
repo-branch.js
repo-code.js Change form actions to fetch for submit review box (#25219) 2023-06-14 16:01:37 +08:00
repo-code.test.js
repo-commit.js
repo-common.js
repo-diff-filetree.js
repo-diff.js Refactor diffFileInfo / DiffTreeStore (#24998) 2023-05-30 18:53:15 +08:00
repo-editor.js
repo-findfile.js
repo-findfile.test.js
repo-graph.js
repo-home.js
repo-issue-content.js Improve and fix bugs surrounding reactions (#24760) 2023-05-28 01:34:18 +00:00
repo-issue-list.js Add the ability to pin Issues (#24406) 2023-05-25 15:17:19 +02:00
repo-issue-pr-form.js
repo-issue.js Fix mobile navbar and misc cleanups (#25134) 2023-06-09 09:10:51 +00:00
repo-legacy.js Improve and fix bugs surrounding reactions (#24760) 2023-05-28 01:34:18 +00:00
repo-migrate.js
repo-migration.js
repo-projects.js Disable Create column button while the column name is empty (#25192) 2023-06-13 09:57:03 +00:00
repo-release.js
repo-settings.js
repo-template.js
repo-unicode-escape.js Improve accessibility when (re-)viewing files (#24817) 2023-05-21 20:47:41 +00:00
repo-wiki.js
sshkey-helper.js
stopwatch.js
tablesort.js
tribute.js
user-auth-webauthn.js Fix webauthn regression and improve code (#25113) 2023-06-07 19:20:18 +08:00
user-auth.js
user-settings.js