From 885fb0f2c17398261d036639de48b77d26a732d3 Mon Sep 17 00:00:00 2001 From: Marie Birner Date: Wed, 27 Sep 2023 13:52:15 +0200 Subject: [PATCH] [BUGFIX] js errors --- frontend/main.ts | 77 ++++++++++++++++++++++++++---------------------- 1 file changed, 41 insertions(+), 36 deletions(-) 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