diff --git a/frontend/main.ts b/frontend/main.ts index 001a585..42e84eb 100644 --- a/frontend/main.ts +++ b/frontend/main.ts @@ -20,46 +20,51 @@ document.addEventListener('DOMContentLoaded', function() { function selectBoatChange() { const boatSelect = document.querySelector('#boat_id'); - const boatChoice = new Choices(boatSelect, { - loadingText: 'Wird geladen...', - noResultsText: 'Keine Ergebnisse gefunden', - noChoicesText: 'Keine Ergebnisse gefunden', - itemSelectText: 'Zum Auswählen klicken', - callbackOnCreateTemplates: function () { - return { - option: ({ label, value, customProperties, active, disabled, }: any) => { - const opt: HTMLOptionElement = Choices.defaults.templates.option.call( - this, - { label, value, customProperties, active, disabled } - ); - // We get the original