From 45c2fc5b3b57e1184a1f4c439404fce240377231 Mon Sep 17 00:00:00 2001 From: Mikal Stordal Date: Wed, 27 Mar 2024 03:24:48 +0100 Subject: [PATCH] fix: reverse the expression --- Shokofin/Configuration/configController.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Shokofin/Configuration/configController.js b/Shokofin/Configuration/configController.js index 29615c3c..492ac293 100644 --- a/Shokofin/Configuration/configController.js +++ b/Shokofin/Configuration/configController.js @@ -450,12 +450,12 @@ export default function (page) { }); form.querySelector("#UseGroupsForShows").addEventListener("change", function () { - form.querySelector("#SeasonOrdering").disabled = this.checked; + form.querySelector("#SeasonOrdering").disabled = !this.checked; if (this.checked) { - form.querySelector("#SeasonOrderingContainer").setAttribute("hidden", ""); + form.querySelector("#SeasonOrderingContainer").removeAttribute("hidden"); } else { - form.querySelector("#SeasonOrderingContainer").removeAttribute("hidden"); + form.querySelector("#SeasonOrderingContainer").setAttribute("hidden", ""); } }); @@ -495,12 +495,12 @@ export default function (page) { } form.querySelector("#UseGroupsForShows").checked = config.UseGroupsForShows || false; form.querySelector("#SeasonOrdering").value = config.SeasonOrdering; - form.querySelector("#SeasonOrdering").disabled = form.querySelector("#UseGroupsForShows").checked; + form.querySelector("#SeasonOrdering").disabled = !form.querySelector("#UseGroupsForShows").checked; if (form.querySelector("#UseGroupsForShows").checked) { - form.querySelector("#SeasonOrderingContainer").setAttribute("hidden", ""); + form.querySelector("#SeasonOrderingContainer").removeAttribute("hidden"); } else { - form.querySelector("#SeasonOrderingContainer").removeAttribute("hidden"); + form.querySelector("#SeasonOrderingContainer").setAttribute("hidden", ""); } form.querySelector("#CollectionGrouping").value = config.CollectionGrouping; form.querySelector("#SeparateMovies").checked = config.SeparateMovies || true;