feat: burg groups - save select choise

This commit is contained in:
Azgaar 2024-12-17 19:32:06 +01:00
parent 984d351e4d
commit 4185611791
2 changed files with 2 additions and 1 deletions

View file

@ -305,7 +305,7 @@ function editBurgGroups() {
}
options.burgs.groups = lines.map(line => {
const inputs = line.querySelectorAll("input");
const inputs = line.querySelectorAll("input, select");
const group = Array.from(inputs).reduce((obj, input) => {
const value = parseInput(input);
if (value !== null) obj[input.name] = value;

View file

@ -164,6 +164,7 @@ void (function () {
input.required = options.required === false ? false : true;
input.placeholder = "type a " + type;
input.value = options.default;
input.style.width = promptText.length > 10 ? "100%" : "auto";
prompt.style.display = "block";
form.addEventListener(