mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-19 01:41:37 +00:00
Datasource-spezifische Suche für Projects/Assemblies sowie Parts umsetzen
This commit is contained in:
parent
dde91ff1c5
commit
ca6254cc53
39 changed files with 4695 additions and 494 deletions
|
|
@ -120,6 +120,9 @@ export default class extends Controller {
|
|||
|
||||
this._autocomplete = autocomplete({
|
||||
container: this.element,
|
||||
initialState: {
|
||||
query: this.element.dataset.initialQuery || that.inputTarget.value || ""
|
||||
},
|
||||
//Place the panel in the navbar, if the element is in navbar mode
|
||||
panelContainer: navbar_mode ? document.getElementById("navbar-search-form") : document.body,
|
||||
panelPlacement: this.element.dataset.panelPlacement,
|
||||
|
|
@ -162,7 +165,10 @@ export default class extends Controller {
|
|||
}
|
||||
|
||||
input.value = state.query;
|
||||
input.form.requestSubmit();
|
||||
|
||||
if (input.form) {
|
||||
input.form.requestSubmit();
|
||||
}
|
||||
},
|
||||
|
||||
getSources({ query }) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue