From b0d80e209c3b300c52a7b8664006911602efc496 Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Wed, 19 Aug 2026 20:51:09 +0200 Subject: [PATCH] kategorie --- partials/landing/account/dashboard.php | 51 +++++++++++++++++--------- 1 file changed, 34 insertions(+), 17 deletions(-) diff --git a/partials/landing/account/dashboard.php b/partials/landing/account/dashboard.php index 5464d7b..cfaa04a 100755 --- a/partials/landing/account/dashboard.php +++ b/partials/landing/account/dashboard.php @@ -965,16 +965,15 @@ if (!empty($canManageSystemSettings)) { -
+
-
+
-
- +
@@ -982,12 +981,12 @@ if (!empty($canManageSystemSettings)) {
-
+
Suchergebnisse -
+
-
+
@@ -997,7 +996,7 @@ if (!empty($canManageSystemSettings)) { Slug: · Einträge: · Orte: · Eigene Events:
- +
@@ -1008,6 +1007,7 @@ if (!empty($canManageSystemSettings)) { class="input" list="categoryMergeSuggestions" placeholder="Kategorie suchen" + data-category-keep-input="#keepCategorySearchChoice option[value='other']" required >
@@ -1015,15 +1015,15 @@ if (!empty($canManageSystemSettings)) {
-
+
-
+ @@ -1039,9 +1039,9 @@ if (!empty($canManageSystemSettings)) { -
+
-
+
Neu @@ -1049,7 +1049,7 @@ if (!empty($canManageSystemSettings)) { Slug: · Einträge: · Orte: · Eigene Events:
- +
@@ -1060,6 +1060,7 @@ if (!empty($canManageSystemSettings)) { class="input" list="categoryMergeSuggestions" placeholder="Kategorie suchen" + data-category-keep-input="#keepCategoryChoice option[value='other']" required >
@@ -1067,14 +1068,14 @@ if (!empty($canManageSystemSettings)) {
-
+
-
+ @@ -1881,6 +1882,22 @@ if (!empty($canManageSystemSettings)) { const allEventLocationOptions = ; + function syncCategoryKeepLabels() { + document.querySelectorAll('[data-category-keep-input]').forEach((input) => { + const optionSelector = input.getAttribute('data-category-keep-input'); + const option = optionSelector ? document.querySelector(optionSelector) : null; + if (!option) return; + const currentValue = (input.value || '').trim(); + option.textContent = currentValue !== '' ? currentValue : 'Zweite Kategorie'; + }); + } + + document.querySelectorAll('[data-category-keep-input]').forEach((input) => { + input.addEventListener('input', syncCategoryKeepLabels); + input.addEventListener('change', syncCategoryKeepLabels); + }); + syncCategoryKeepLabels(); + function buildEventLocationLabel(option) { if (!option) return ''; const addressLabel = [String(option.street || ''), `${String(option.zip || '')} ${String(option.city || '')}`.trim()]