Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
fl0ppy-d1sk committed May 15, 2024
2 parents 4a6aac6 + 7216c77 commit edc76a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ui/static/js/utils/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -1417,7 +1417,7 @@ class SettingsMultiple extends Settings {
inps.forEach((inp) => {
// case checkbox
if (inp.getAttribute("type") === "checkbox") {
const defaultVal = inp.getAttribute("data-default") || "";
const defaultVal = inp.getAttribute("data-default-value") || "";

if (defaultVal === "yes" && !inp.checked) {
inp.click();
Expand All @@ -1426,7 +1426,7 @@ class SettingsMultiple extends Settings {

// case regular
if (inp.getAttribute("type") !== "checkbox") {
const defaultVal = inp.getAttribute("data-default") || "";
const defaultVal = inp.getAttribute("data-default-value") || "";
inp.setAttribute("value", defaultVal);
inp.value = defaultVal;
}
Expand All @@ -1438,7 +1438,7 @@ class SettingsMultiple extends Settings {
"button[data-setting-select]",
);
selects.forEach((select) => {
const defaultVal = select.getAttribute("data-default") || "";
const defaultVal = select.getAttribute("data-default-value") || "";
select
.querySelector("data-setting-select-text")
.setAttribute("data-value", defaultVal);
Expand Down

0 comments on commit edc76a2

Please sign in to comment.