mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
adding styling to autocomplete
This commit is contained in:
parent
17eee66b95
commit
866c8af393
@ -195,6 +195,7 @@ $(document).ready(function () {
|
|||||||
$("#search-bar" ).autocomplete({
|
$("#search-bar" ).autocomplete({
|
||||||
source: "{% url 'search-api' %}",
|
source: "{% url 'search-api' %}",
|
||||||
minLength: 2,
|
minLength: 2,
|
||||||
|
classes: {'ui-autocomplete': 'dropdown-menu'},
|
||||||
select: function( event, ui ) {
|
select: function( event, ui ) {
|
||||||
window.location = '/part/' + ui.item.id + '/';
|
window.location = '/part/' + ui.item.id + '/';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user