From 4e607e135a9fe82ae3a0bcff424c521efac32335 Mon Sep 17 00:00:00 2001 From: philipp Date: Mon, 30 Oct 2023 09:31:22 +0100 Subject: [PATCH] use proper names for new form fields --- frontend/main.ts | 4 ++-- templates/includes/forms/log.html.tera | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/main.ts b/frontend/main.ts index e66a2e6..c47ab54 100644 --- a/frontend/main.ts +++ b/frontend/main.ts @@ -198,7 +198,7 @@ function initNewChoice(select: HTMLInputElement) { const name = event.detail.label; if (event.detail.customProperties.is_cox) { - const coxSelect = document.querySelector('#cox'); + const coxSelect = document.querySelector('#shipmaster'); if (coxSelect){ coxSelect.add(new Option(name, user_id)); } @@ -215,7 +215,7 @@ function initNewChoice(select: HTMLInputElement) { const user_id = event.detail.value; - const coxSelect = document.querySelector('#cox'); + const coxSelect = document.querySelector('#shipmaster'); if (coxSelect) { for (var i=0; i