mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
new service doesn't force method="default"
This commit is contained in:
parent
1321a76c0c
commit
3a4a6ee5f2
1 changed files with 2 additions and 1 deletions
|
|
@ -90,6 +90,7 @@ class ServiceModal {
|
|||
//server name is unset
|
||||
const inpServName = document.querySelector("input#SERVER_NAME");
|
||||
inpServName.getAttribute("value", "");
|
||||
inpServName.removeAttribute("disabled", "");
|
||||
inpServName.value = "";
|
||||
|
||||
//show modal
|
||||
|
|
@ -133,7 +134,7 @@ class ServiceModal {
|
|||
return;
|
||||
|
||||
//for all other settings values
|
||||
const defaultMethod = "default";
|
||||
const defaultMethod = inp.getAttribute("data-default-method");
|
||||
const defaultVal = inp.getAttribute("data-default-value") || "";
|
||||
|
||||
//SET VALUE
|
||||
|
|
|
|||
Loading…
Reference in a new issue