Subdomain edit funktion eingebaut

This commit is contained in:
ecki
2026-03-22 16:50:36 +01:00
parent 0559cc4cd1
commit 49ae3a5c29
6 changed files with 123 additions and 36 deletions
+21 -3
View File
@@ -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