diff --git a/assets/js/csvxml-overview.js b/assets/js/csvxml-overview.js index ef9efd3..a11fd7a 100644 --- a/assets/js/csvxml-overview.js +++ b/assets/js/csvxml-overview.js @@ -39,6 +39,18 @@ field.textContent = newValue; field.classList.toggle("humanTLToggled"); + if (field.classList.contains("humanTLToggled") === false) return; + + let dependencies = field.getAttribute("data-dependencies"); + if (dependencies !== undefined && dependencies !== null) { + let linkedFields = dependencies.split(";"); + for (let i = 0, max = linkedFields.length; i < max; i++) { + let linkedField = document.getElementById(linkedFields[i]); + if (linkedField.classList.contains("humanTLToggled") === true) continue; + toggleListFieldSelectionState(linkedField); + } + } + } doForFieldList(function(field) { diff --git a/index.php b/index.php index 7e2d486..f31fe66 100644 --- a/index.php +++ b/index.php @@ -66,7 +66,8 @@ require __DIR__ . "/values/availableFields.php"; $tooltips = []; foreach ($availableFields as $headline => $fields) { - echo "

{$headline}

+ echo " +

{$headline}

'; + echo ' + +'; }