adding styling to autocomplete

This commit is contained in:
Matthias 2021-07-19 01:07:33 +02:00
parent 17eee66b95
commit 866c8af393

View File

@ -195,6 +195,7 @@ $(document).ready(function () {
$("#search-bar" ).autocomplete({
source: "{% url 'search-api' %}",
minLength: 2,
classes: {'ui-autocomplete': 'dropdown-menu'},
select: function( event, ui ) {
window.location = '/part/' + ui.item.id + '/';
}