diff options
author | Sandro Santilli <strk@kbt.io> | 2022-06-10 07:39:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-10 13:39:53 +0800 |
commit | 52c2e82813c2519cd08c9ecd66ef7b0815682770 (patch) | |
tree | 1120ca6d9b6534e33554f0b1c74529e62feba5b2 /web_src/js/features/repo-legacy.js | |
parent | 5f618248a98ffbb7066100ffe1955faf791d0205 (diff) | |
download | gitea-52c2e82813c2519cd08c9ecd66ef7b0815682770.tar.gz gitea-52c2e82813c2519cd08c9ecd66ef7b0815682770.zip |
Custom regexp external issues (#17624)
* Implement custom regular expression for external issue tracking.
Signed-off-by: Alexander Beyn <malex@fatelectrons.org>
* Fix syntax/style
* Update repo.go
* Set metas['regexp']
* gofmt
* fix some tests
* fix more tests
* refactor frontend
* use LRU cache for regexp
* Update modules/markup/html_internal_test.go
Co-authored-by: Alexander Beyn <malex@fatelectrons.org>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'web_src/js/features/repo-legacy.js')
-rw-r--r-- | web_src/js/features/repo-legacy.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/web_src/js/features/repo-legacy.js b/web_src/js/features/repo-legacy.js index 53471b30cf..6cdde6a1e4 100644 --- a/web_src/js/features/repo-legacy.js +++ b/web_src/js/features/repo-legacy.js @@ -462,6 +462,11 @@ export function initRepository() { if (typeof $(this).data('context') !== 'undefined') $($(this).data('context')).addClass('disabled'); } }); + const $trackerIssueStyleRadios = $('.js-tracker-issue-style'); + $trackerIssueStyleRadios.on('change input', () => { + const checkedVal = $trackerIssueStyleRadios.filter(':checked').val(); + $('#tracker-issue-style-regex-box').toggleClass('disabled', checkedVal !== 'regexp'); + }); } // Labels |