forgejo/web_src/js/features
Giteabot 2969745b0c
Use "is-loading" to avoid duplicate form submit for code comment () ()
Backport  by @wxiaoguang

Compare by ignoring spaces:
https://github.com/go-gitea/gitea/pull/28143/files?diff=split&w=1

When the form is going to be submitted, add the "is-loading" class to
show an indicator and avoid user UI events.

When the request finishes (success / error), remove the "is-loading"
class to make user can interact the UI.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
(cherry picked from commit ffab076b72)
2023-11-22 17:12:12 +01:00
..
admin Refactor system setting () () 2023-10-05 10:37:59 +00:00
comp Use fetch helpers instead of fetch () 2023-09-19 00:50:30 +00:00
captcha.js
citation.js Introduce eslint-plugin-no-jquery/no-event-shorthand () 2023-04-20 05:28:27 -04:00
clipboard.js Clipboard copy enhancements () () 2023-10-19 00:23:28 +08:00
codeeditor.js Fix EOL handling in web editor () () 2023-09-24 22:10:38 +00:00
colorpicker.js
common-global.js Show error toast when file size exceeds the limits () () 2023-11-10 11:52:04 +00:00
common-issue-list.js Use fetch helpers instead of fetch () 2023-09-19 00:50:30 +00:00
common-issue-list.test.js Use vitest globals () () 2023-09-27 16:10:08 +02:00
common-organization.js Fix Org edit page bugs: renaming detection, maxlength () 2023-04-17 11:35:57 -04:00
contextpopup.js Fix issue and commit status popup padding () 2023-06-15 10:09:16 +02:00
copycontent.js Use fetch helpers instead of fetch () 2023-09-19 00:50:30 +00:00
dropzone.js
emoji.js Update JS and PY dependencies () () 2023-10-08 19:31:33 +02:00
eventsource.sharedworker.js
file-fold.js Scroll collapsed file into view () 2023-04-05 07:51:42 +08:00
heatmap.js Remove fomantic loader module () 2023-08-25 16:03:14 +00:00
imagediff.js Replace ajax with fetch, improve image diff () () 2023-10-11 16:12:31 +02:00
install.js [BRANDING] Rebrand default config settings for new installs () 2023-11-13 13:58:17 +01:00
notification.js Fix notification list bugs () 2023-07-09 18:42:31 +00:00
org-team.js Add status indicator on main home screen for each repo () 2023-05-13 21:59:01 +00:00
pull-view-file.js Use fetch helpers instead of fetch () 2023-09-19 00:50:30 +00:00
repo-branch.js Display warning when user try to rename default branch () 2023-05-04 22:54:38 +00:00
repo-code.js Change form actions to fetch for submit review box () 2023-06-14 16:01:37 +08:00
repo-code.test.js Use vitest globals () () 2023-09-27 16:10:08 +02:00
repo-commit.js Show branches and tags that contain a commit () 2023-07-27 12:47:41 +02:00
repo-common.js Improve "language stats" UI () 2023-09-10 18:27:23 +08:00
repo-diff-commit.js Use fetch helpers instead of fetch () 2023-09-19 00:50:30 +00:00
repo-diff-commitselect.js Add commits dropdown in PR files view and allow commit by commit review () 2023-07-28 21:18:12 +02:00
repo-diff-filetree.js
repo-diff.js Use "is-loading" to avoid duplicate form submit for code comment () () 2023-11-22 17:12:12 +01:00
repo-editor.js Use unique class for breadcrumb divider () 2023-08-16 00:08:23 +00:00
repo-findfile.js Refactor branch/tag selector to Vue SFC () 2023-03-14 17:51:20 +08:00
repo-findfile.test.js Use vitest globals () () 2023-09-27 16:10:08 +02:00
repo-graph.js
repo-home.js Fix the topic validation rule and suport dots () 2023-08-03 09:18:06 +00:00
repo-issue-content.js Improve issue history dialog and make poster can delete their own history () () 2023-09-28 09:46:46 +00:00
repo-issue-list.js Hide archived labels by default from the suggestions when assigning labels for an issue () () 2023-10-17 14:46:35 +00:00
repo-issue-pr-form.js
repo-issue.js Hide archived labels by default from the suggestions when assigning labels for an issue () () 2023-10-17 14:46:35 +00:00
repo-legacy.js Improve "language stats" UI () 2023-09-10 18:27:23 +08:00
repo-migrate.js Use fetch helpers instead of fetch () 2023-09-19 00:50:30 +00:00
repo-migration.js Use "input" event instead of "keyup" event for migration form () 2023-08-20 16:36:07 +02:00
repo-projects.js Fix duplicate project board when hitting enter key () () 2023-10-23 13:04:53 +00:00
repo-release.js Update JS dependencies, add new eslint rules () 2023-05-09 02:35:49 +00:00
repo-settings.js Improve repo/user/org search () 2023-09-12 16:44:48 +00:00
repo-template.js Add status indicator on main home screen for each repo () 2023-05-13 21:59:01 +00:00
repo-unicode-escape.js Improve accessibility when (re-)viewing files () 2023-05-21 20:47:41 +00:00
repo-wiki.js Improve wiki sidebar and TOC () 2023-06-23 15:51:43 -04:00
sshkey-helper.js
stopwatch.js
tablesort.js
tribute.js Avoiding accessing undefined mentionValues () 2023-08-12 08:36:23 +00:00
user-auth-webauthn.js Use fetch helpers instead of fetch () 2023-09-19 00:50:30 +00:00
user-auth.js Show the mismatched ROOT_URL warning on the sign-in page if OAuth2 is enabled () 2023-07-18 22:14:30 +00:00
user-settings.js