forgejo/web_src/js/features
Gergely Nagy e947fa7acc 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>
(cherry picked from commit a93a99eef3)
2024-04-23 08:01:58 +00:00
..
admin Fix admin notice view-detail (#30450) (#30458) 2024-04-15 16:41:44 +02:00
comp s/Gitea/Forgejo in various log messages and comments 2024-04-22 14:41:17 +00:00
autofocus-end.js When the title in the issue has a value, set the text cursor at the end of the text. (#30090) 2024-03-30 07:17:31 +01:00
captcha.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
citation.js Remove jQuery from the citation modal (except fomantic) (#30008) 2024-03-26 19:04:27 +01:00
clipboard.js
code-frequency.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
codeeditor.js Disable enter key for accepting code completion in Monaco (#30548) (#30559) 2024-04-21 18:11:02 +02:00
colorpicker.js Forbid jQuery .css and refactor all usage (#29852) 2024-03-26 19:04:25 +01:00
common-global.js Remove fomantic checkbox module (#30162) (#30168) 2024-04-08 11:28:31 +02:00
common-issue-list.js Remove jQuery from the issue "go to" button (#30028) 2024-03-26 19:04:27 +01:00
common-issue-list.test.js
common-organization.js
contextpopup.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
contributors.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
copycontent.js
dropzone.js
emoji.js
eventsource.sharedworker.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
file-fold.js
heatmap.js
imagediff.js Remove remaining jQuery .css code (#30015) 2024-03-26 19:04:28 +01:00
install.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
notification.js Migrate gt-hidden to tw-hidden (#30046) 2024-03-30 07:17:29 +01:00
org-team.js Remove jQuery calls that have no effect on showElem and hideElem (#30110) 2024-03-30 07:17:30 +01:00
pull-view-file.js
recent-commits.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
repo-branch.js Remove jQuery from the create/rename branch modals (except Fomantic) (#30109) 2024-03-30 07:17:31 +01:00
repo-code.js Remove jQuery .attr from the code line range selection (#30077) 2024-03-30 07:17:30 +01:00
repo-code.test.js
repo-commit.js
repo-common.js [BUG] Fix archive button on release page 2024-04-16 06:24:39 +00:00
repo-diff-commit.js Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
repo-diff-commitselect.js
repo-diff-filetree.js
repo-diff.js Refactor all .length === 0 patterns in JS (#30045) 2024-03-30 07:17:30 +01:00
repo-editor.js Remove jQuery calls that have no effect on showElem and hideElem (#30110) 2024-03-30 07:17:30 +01:00
repo-findfile.js Refactor all .length === 0 patterns in JS (#30045) 2024-03-30 07:17:30 +01:00
repo-findfile.test.js
repo-graph.js Migrate gt-hidden to tw-hidden (#30046) 2024-03-30 07:17:29 +01:00
repo-home.js Refactor all .length === 0 patterns in JS (#30045) 2024-03-30 07:17:30 +01:00
repo-issue-content.js Migrate gt-hidden to tw-hidden (#30046) 2024-03-30 07:17:29 +01:00
repo-issue-list.js Drag-and-drop improvements for projects and issue pins (#29875) 2024-03-30 07:17:31 +01: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 08:01:58 +00:00
repo-legacy.js [PORT] Refactor dropzone (#30232) 2024-04-08 09:50:53 +00:00
repo-migrate.js
repo-migration.js
repo-projects.js Drag-and-drop improvements for projects and issue pins (#29875) 2024-03-30 07:17:31 +01:00
repo-release.js
repo-search.js
repo-settings.js Refactor all .length === 0 patterns in JS (#30045) 2024-03-30 07:17:30 +01:00
repo-template.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
repo-unicode-escape.js [v7.0/forgejo] Render inline file permalinks 2024-04-01 16:15:58 +02:00
repo-wiki.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
sshkey-helper.js
stopwatch.js
tablesort.js
tribute.js Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
user-auth-webauthn.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
user-auth.js
user-settings.js [v7.0/forgejo] Add optional pronoun field in user settings (#3076) 2024-04-06 13:23:43 +00:00