forgejo/web_src/js/features
Gergely Nagy a93a99eef3
Fix the WIP prefix toggling on the sidebar
The WIP prefix toggling link on the sidebar only supported toggling
the *first* prefix specified in
`[repository.pullrequest].WORK_IN_PROGRESS_PREFIXES`. If the pull
request had a title with any other prefix, the first prefix listed in
the config was added (and then removed on toggling it off).

This little change makes all of the prefixes available for the
JavaScript function that does the toggling, and changes said function to
find the used prefix first, and toggle that.

When adding the prefix, it will still default to adding the first one
listed in the configuration, but it will happily remove any others if
those are present.

Fixes #3377.

Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
2024-04-23 01:41:35 +02:00
..
admin Fix admin notice view-detail (#30450) 2024-04-15 20:01:36 +02:00
comp s/Gitea/Forgejo in various log messages and comments 2024-04-21 21:26:15 +05:00
autofocus-end.js
captcha.js
citation.js
clipboard.js
code-frequency.js
codeeditor.js Disable enter key for accepting code completion in Monaco (#30548) 2024-04-21 16:28:16 +02:00
colorpicker.js Replace coloris with vanilla-colorful (#30201) 2024-04-07 15:40:31 +02:00
common-global.js Remove fomantic input module (#30194) 2024-04-07 15:40:31 +02:00
common-issue-list.js
common-issue-list.test.js
common-organization.js
contextpopup.js
contributors.js
copycontent.js Remove fomantic input module (#30194) 2024-04-07 15:40:31 +02:00
dropzone.js
emoji.js
eventsource.sharedworker.js
file-fold.js
heatmap.js
imagediff.js Remove jQuery class from the image diff (#30140) 2024-04-07 11:05:47 +02:00
install.js [CHORE] Remove Microsoft SQL Server Support 2024-04-05 23:37:36 +02:00
notification.js Remove jQuery class from the notification count (#30172) 2024-04-07 15:40:31 +02:00
org-team.js
pull-view-file.js
recent-commits.js
repo-branch.js
repo-code.js Remove jQuery class from the code range selection (#30173) 2024-04-07 15:40:31 +02:00
repo-code.test.js
repo-commit.js
repo-common.js [BUG] Fix archive button on release page 2024-04-16 01:06:04 +02:00
repo-diff-commit.js
repo-diff-commitselect.js
repo-diff-filetree.js
repo-diff.js Remove jQuery class from the diff view (#30176) 2024-04-07 15:40:31 +02:00
repo-editor.js Remove jQuery class from the commit button (#30178) 2024-04-07 15:40:31 +02:00
repo-findfile.js
repo-findfile.test.js
repo-graph.js Remove jQuery from the commit graph (except Fomantic) (#30395) 2024-04-15 20:01:36 +02:00
repo-home.js Remove most jQuery function calls from the repository topic box (#30191) 2024-04-07 15:40:31 +02:00
repo-issue-content.js Remove jQuery class from the comment edit history (#30186) 2024-04-07 15:40:31 +02:00
repo-issue-list.js Make a distinction between active and selected in the issue author dropdown (#30207) 2024-04-07 15:40:31 +02:00
repo-issue-pr-form.js
repo-issue-pr-status.js
repo-issue.js Fix the WIP prefix toggling on the sidebar 2024-04-23 01:41:35 +02:00
repo-legacy.js [PORT] Refactor dropzone (#30232) 2024-04-05 09:23:51 +02:00
repo-migrate.js
repo-migration.js
repo-projects.js [PORT] gitea##30237: Fix and rewrite contrast color calculation, fix project-related bugs 2024-04-15 16:11:34 +02:00
repo-release.js
repo-search.js
repo-settings.js Remove jQuery class from the repository branch settings (#30184) 2024-04-07 15:40:31 +02:00
repo-template.js
repo-unicode-escape.js
repo-wiki.js
sshkey-helper.js
stopwatch.js
tablesort.js
tribute.js
user-auth-webauthn.js
user-auth.js
user-settings.js only add name attribute to pronouns input in JS, to ensure fallback works 2024-04-03 15:16:40 -05:00