Subdomain edit funktion eingebaut
This commit is contained in:
@@ -134,10 +134,14 @@ document.getElementById("domainModal").style.display="none"
|
||||
|
||||
window.openSubCreate = function(domainId){
|
||||
|
||||
document.getElementById("sub_domain_id").value=domainId
|
||||
document.getElementById("sub_id").value = "" // RESET !!
|
||||
|
||||
document.getElementById("sub_domain_id").value = domainId
|
||||
document.getElementById("sub_name").value = ""
|
||||
document.getElementById("sub_ip").value = ""
|
||||
|
||||
document.querySelector("#subdomainModal h3").innerText = "Subdomain erstellen"
|
||||
|
||||
document.getElementById("sub_name").value=""
|
||||
document.getElementById("sub_ip").value=""
|
||||
|
||||
document.getElementById("subdomainModal").style.display="block"
|
||||
|
||||
@@ -150,6 +154,20 @@ document.getElementById("subdomainModal").style.display="none"
|
||||
|
||||
}
|
||||
|
||||
window.openSubEdit = function(s){
|
||||
|
||||
document.getElementById("sub_id").value = s.id
|
||||
document.getElementById("sub_domain_id").value = s.domain_id
|
||||
|
||||
document.getElementById("sub_name").value = s.subdomain
|
||||
document.getElementById("sub_ip").value = s.ip_address
|
||||
|
||||
document.querySelector("#subdomainModal h3").innerText = "Subdomain bearbeiten"
|
||||
|
||||
document.getElementById("subdomainModal").style.display="block"
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* =========================
|
||||
IP MODAL
|
||||
|
||||
Reference in New Issue
Block a user