mirror of https://github.com/go-gitea/gitea.git
use exact search instead of fuzzy search for branch filter dropdown (#19885)
This commit is contained in:
parent
df9612bb53
commit
d0a2c1e82b
|
@ -110,14 +110,14 @@ export function initRepoCommonBranchOrTagDropdown(selector) {
|
|||
export function initRepoCommonFilterSearchDropdown(selector) {
|
||||
const $dropdown = $(selector);
|
||||
$dropdown.dropdown({
|
||||
fullTextSearch: true,
|
||||
fullTextSearch: 'exact',
|
||||
selectOnKeydown: false,
|
||||
onChange(_text, _value, $choice) {
|
||||
if ($choice.data('url')) {
|
||||
window.location.href = $choice.data('url');
|
||||
if ($choice.attr('data-url')) {
|
||||
window.location.href = $choice.attr('data-url');
|
||||
}
|
||||
},
|
||||
message: {noResults: $dropdown.data('no-results')},
|
||||
message: {noResults: $dropdown.attr('data-no-results')},
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue