aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js')
-rw-r--r--web_src/js/features/repo-common.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/web_src/js/features/repo-common.js b/web_src/js/features/repo-common.js
index 89dae26277..b0ecc5a651 100644
--- a/web_src/js/features/repo-common.js
+++ b/web_src/js/features/repo-common.js
@@ -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')},
});
}