forgejo/web_src/js/features
Xinyu Zhou 9414260d67
Fix UI language switching bug (#21597) (#21748)
Backport #21597

Related:
* https://github.com/go-gitea/gitea/pull/21596#issuecomment-1291450224

There was a bug when switching language by AJAX: the irrelevant POST
requests were processed by the target page's handler.

Now, use GET instead of POST. The GET requests should be harmless.

Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: Jason Song <i@wolfogre.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2022-11-10 10:13:36 +08:00
..
comp Add down key check has tribute container (#21016) (#21038) 2022-09-03 14:36:27 +01:00
admin-common.js Add LDAP group sync to Teams, fixes #1395 (#16299) 2022-02-11 22:24:58 +08:00
admin-emails.js Use explicit jQuery import, remove unused eslint globals (#18435) 2022-01-28 21:00:11 +00:00
admin-users.js Use explicit jQuery import, remove unused eslint globals (#18435) 2022-01-28 21:00:11 +00:00
aria.js Remove customized (unmaintained) dropdown, improve aria a11y for dropdown (#19861) 2022-06-03 17:38:26 -04:00
aria.md Remove customized (unmaintained) dropdown, improve aria a11y for dropdown (#19861) 2022-06-03 17:38:26 -04:00
clipboard.js Use explicit jQuery import, remove unused eslint globals (#18435) 2022-01-28 21:00:11 +00:00
codeeditor.js Enable Monaco automaticLayout (#21516) 2022-10-19 21:12:37 +01:00
colorpicker.js Move jquery-minicolors to npm/webpack (#12305) 2020-07-29 14:44:23 -04:00
common-global.js Fix UI language switching bug (#21597) (#21748) 2022-11-10 10:13:36 +08:00
common-issue.js Replace deprecated String.prototype.substr() with String.prototype.slice() (#18796) 2022-02-18 14:50:36 +08:00
common-organization.js Use explicit jQuery import, remove unused eslint globals (#18435) 2022-01-28 21:00:11 +00:00
contextpopup.js Use explicit jQuery import, remove unused eslint globals (#18435) 2022-01-28 21:00:11 +00:00
dropzone.js Update JS dependencies (#17611) 2021-11-11 09:52:16 +08:00
emoji.js Frontend refactor, PascalCase to camelCase, remove unused code (#17365) 2021-10-21 15:37:43 +08:00
eventsource.sharedworker.js Fix the JS error "EventSource is not defined" caused by some non-standard browsers (#20584) (#20663) 2022-08-04 19:20:54 +08:00
file-fold.js Allow to mark files in a PR as viewed (#19007) 2022-05-07 20:28:10 +02:00
formatting.js Prettify number of issues (#17760) 2022-06-12 20:08:23 +08:00
heatmap.js Use explicit jQuery import, remove unused eslint globals (#18435) 2022-01-28 21:00:11 +00:00
imagediff.js Fix viewed images not loading in a PR (#19919) 2022-06-08 18:19:06 +01:00
install.js Use explicit jQuery import, remove unused eslint globals (#18435) 2022-01-28 21:00:11 +00:00
notification.js Enable contenthash in filename for dynamic assets (#20813) (#20932) 2022-08-25 07:16:20 +01:00
org-team.js Never use /api/v1 from Gitea UI Pages (#19318) 2022-04-07 20:59:56 +02:00
pull-view-file.js Replace unstyled meter with progress (#19968) 2022-06-15 12:28:24 +08:00
repo-branch.js Add apply-patch, basic revert and cherry-pick functionality (#17902) 2022-02-09 20:28:55 +00:00
repo-code.js Allow to mark files in a PR as viewed (#19007) 2022-05-07 20:28:10 +02:00
repo-commit.js Fix a JS error in initRepoCommitLastCommitLoader's entryMap (#19996) 2022-06-17 17:44:35 +08:00
repo-common.js Rework repo buttons (#20602, #20718) (#20719) 2022-08-20 15:49:16 +01:00
repo-diff.js Init popup for new code comment (#20234) (#20235) 2022-07-05 13:29:04 +01:00
repo-editor.js Use explicit jQuery import, remove unused eslint globals (#18435) 2022-01-28 21:00:11 +00:00
repo-findfile.js Feature: Find files in repo (#15028) 2022-06-09 14:15:08 +03:00
repo-graph.js Use explicit jQuery import, remove unused eslint globals (#18435) 2022-01-28 21:00:11 +00:00
repo-home.js A minimal change to replace data calls with attr as per guidelines (#19900) 2022-06-06 12:58:53 +08:00
repo-issue-content.js Use explicit jQuery import, remove unused eslint globals (#18435) 2022-01-28 21:00:11 +00:00
repo-issue-pr-form.js Use Vue to refactor pull merge UI (#19650) 2022-05-12 21:39:02 +08:00
repo-issue.js Use Vue to refactor pull merge UI (#19650) 2022-05-12 21:39:02 +08:00
repo-legacy.js Fix remove file on initial comment (#20127) (#20128) 2022-06-25 20:50:23 +01:00
repo-migrate.js Use explicit jQuery import, remove unused eslint globals (#18435) 2022-01-28 21:00:11 +00:00
repo-migration.js Use explicit jQuery import, remove unused eslint globals (#18435) 2022-01-28 21:00:11 +00:00
repo-projects.js Feature: show issue assignee on project board (#15232) 2022-03-09 00:42:28 +08:00
repo-release.js Use explicit jQuery import, remove unused eslint globals (#18435) 2022-01-28 21:00:11 +00:00
repo-settings.js Remove customized (unmaintained) dropdown, improve aria a11y for dropdown (#19861) 2022-06-03 17:38:26 -04:00
repo-template.js Never use /api/v1 from Gitea UI Pages (#19318) 2022-04-07 20:59:56 +02:00
repo-unicode-escape.js Use explicit jQuery import, remove unused eslint globals (#18435) 2022-01-28 21:00:11 +00:00
repo-wiki.js Make Ctrl+Enter (quick submit) work for issue comment and wiki editor (#19729) 2022-05-20 04:26:04 +02:00
serviceworker.js Enable contenthash in filename for dynamic assets (#20813) (#20932) 2022-08-25 07:16:20 +01:00
sshkey-helper.js Use explicit jQuery import, remove unused eslint globals (#18435) 2022-01-28 21:00:11 +00:00
stopwatch.js Enable contenthash in filename for dynamic assets (#20813) (#20932) 2022-08-25 07:16:20 +01:00
tablesort.js Added missing data- prefix. (#17884) 2021-12-03 00:36:00 +08:00
tribute.js Correctly escape within tribute.js (#20831) (#20832) 2022-08-17 21:09:28 +01:00
user-auth-webauthn.js Prevent security failure due to bad APP_ID (#18678) 2022-02-09 15:37:58 +08:00
user-auth.js Use explicit jQuery import, remove unused eslint globals (#18435) 2022-01-28 21:00:11 +00:00
user-settings.js Use explicit jQuery import, remove unused eslint globals (#18435) 2022-01-28 21:00:11 +00:00