Skip to content

Commit

Permalink
fix: reverse the expression
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed Mar 27, 2024
1 parent 34fbbff commit 45c2fc5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Shokofin/Configuration/configController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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", "");
}
});

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 45c2fc5

Please sign in to comment.