mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
commit
50b83790a5
1 changed files with 18 additions and 0 deletions
|
|
@ -378,6 +378,24 @@ class Multiple {
|
|||
.getAttribute("setting-container")
|
||||
.replace("SCHEMA", `${setNum}`);
|
||||
ctnr.setAttribute("setting-container", newName);
|
||||
//rename input
|
||||
try {
|
||||
const inp = ctnr.querySelector("input");
|
||||
const newInpName = inp
|
||||
.getAttribute("name")
|
||||
.replace("_SCHEMA", "");
|
||||
inp.setAttribute("name", newInpName);
|
||||
inp.setAttribute("id", newInpName);
|
||||
} catch (err) {}
|
||||
//rename select
|
||||
try {
|
||||
const select = ctnr.querySelector("select");
|
||||
const newInpName = select
|
||||
.getAttribute("name")
|
||||
.replace("_SCHEMA", "");
|
||||
select.setAttribute("name", newInpName);
|
||||
select.setAttribute("id", newInpName);
|
||||
} catch (err) {}
|
||||
});
|
||||
} catch (err) {}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue