Skip to content

Commit

Permalink
feat(core): add additional settings of bootstrap-multiselect
Browse files Browse the repository at this point in the history
This configures the bootstrap-multiselect to enable case insensitive
filtering. It also overrides the default template for the `filter`
input, because in our setup this has some alignment issues.
  • Loading branch information
b1rger committed Dec 5, 2024
1 parent 4fdd848 commit 012e1d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apis_core/core/static/js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
$(document).ready(function() {
$('select.selectmultiple').multiselect({
includeSelectAllOption: true,
enableFiltering: true
enableFiltering: true,
enableCaseInsensitiveFiltering: true,
templates: {
filter: '<div class="multiselect-filter"><div class="input-group input-group-sm p-1"><input class="form-control multiselect-search" type="text" /></div></div>'
}
});
})

Expand Down

0 comments on commit 012e1d1

Please sign in to comment.