Farbnamen nicht mehr an die Anhänger-Bezeichnung hängen

Anhänger heißen im Interface nur noch "Nr. 5" bzw. "Truhe 2"; die Farbe
zeigt der farbige Punkt/Chip. Betroffen: Auswahlliste im Buchungs-
formular, Vorschau-Chip im Formular, Buchungsdetail und Buchungs-Panel.
Cache-Buster auf Version 15.
This commit is contained in:
torsten 2026-11-18 21:50:28 +01:00
parent c61a31b0a8
commit 4a4041e817
5 changed files with 8 additions and 9 deletions

View file

@ -246,8 +246,7 @@
const option = trailerSelect.selectedOptions[0];
if (!option) return;
const color = option.dataset.color || '#196abc';
const name = option.dataset.colorName || '';
const label = option.textContent.split('·')[0].trim();
const label = option.textContent.trim();
const preview = bookingForm.querySelector('[data-trailer-preview]');
if (preview) {
preview.style.setProperty('--trailer', color);
@ -255,7 +254,7 @@
const dot = preview.querySelector('.trailer-dot');
if (dot) dot.style.setProperty('--trailer', color);
const text = preview.querySelector('[data-trailer-preview-label]');
if (text) text.textContent = `${label} · ${name}`;
if (text) text.textContent = label;
}
const summary = bookingForm.querySelector('[data-summary-trailer]');
if (summary) summary.textContent = label;