mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
change select method check
*new service method check is now data-default-method (prev data-method) *creating new multiple method check is now data-default-method (prev data-method)
This commit is contained in:
parent
ab71c484ea
commit
bc3ea0ed35
1 changed files with 3 additions and 3 deletions
|
|
@ -174,7 +174,7 @@ class ServiceModal {
|
|||
|
||||
const selects = this.modal.querySelectorAll("select");
|
||||
selects.forEach((select) => {
|
||||
const defaultMethod = "default";
|
||||
const defaultMethod = select.getAttribute("data-default-method");
|
||||
const defaultVal = select.getAttribute("data-default-value");
|
||||
//click the custom select dropdown to update select value
|
||||
select.parentElement
|
||||
|
|
@ -762,7 +762,7 @@ class Multiple {
|
|||
try {
|
||||
const inps = setting.querySelectorAll("input");
|
||||
inps.forEach((inp) => {
|
||||
const method = inp.getAttribute("data-method") || "default";
|
||||
const method = inp.getAttribute("data-default-method");
|
||||
if (method === "ui" || method === "default") {
|
||||
inp.removeAttribute("disabled");
|
||||
} else {
|
||||
|
|
@ -774,7 +774,7 @@ class Multiple {
|
|||
try {
|
||||
const selects = setting.querySelectorAll("select");
|
||||
selects.forEach((select) => {
|
||||
const method = select.getAttribute("data-method") || "default";
|
||||
const method = select.getAttribute("data-default-method");
|
||||
const name = select.getAttribute(
|
||||
"data-services-setting-select-default"
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue