Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fullTextSearch to dropdowns by default #14694

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions web_src/js/features/gitgraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export default async function initGitGraph() {
$('#flow-select-refs-dropdown').dropdown('set selected', dropdownSelected);
$('#flow-select-refs-dropdown').dropdown({
clearable: true,
fullTextSeach: 'exact',
onRemove(toRemove) {
if (toRemove === '...flow-hide-pr-refs') {
params.delete('hide-pr-refs');
Expand Down
14 changes: 10 additions & 4 deletions web_src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2408,18 +2408,23 @@ $(document).ready(async () => {
});

// Semantic UI modules.
$('.dropdown:not(.custom)').dropdown();
$('.dropdown:not(.custom)').dropdown({
fullTextSearch: 'exact'
});
$('.jump.dropdown').dropdown({
action: 'hide',
onShow() {
$('.poping.up').popup('hide');
}
},
fullTextSearch: 'exact'
});
$('.slide.up.dropdown').dropdown({
transition: 'slide up'
transition: 'slide up',
fullTextSearch: 'exact'
});
$('.upward.dropdown').dropdown({
direction: 'upward'
direction: 'upward',
fullTextSearch: 'exact'
});
$('.ui.accordion').accordion();
$('.ui.checkbox').checkbox();
Expand Down Expand Up @@ -3465,6 +3470,7 @@ function initTopicbar() {
topicDropdown.dropdown({
allowAdditions: true,
forceSelection: false,
fullTextSearch: 'exact',
fields: {name: 'description', value: 'data-value'},
saveRemoteData: false,
label: {
Expand Down