ResMan update
This commit is contained in:
@@ -602,7 +602,7 @@ document.querySelectorAll("#resourceModal input, #resourceModal textarea")
|
||||
.forEach(e=>e.value="")
|
||||
|
||||
document.getElementById("resourceModal").style.display="block"
|
||||
|
||||
document.getElementById("status").value="aktiv"
|
||||
}
|
||||
|
||||
|
||||
@@ -823,19 +823,17 @@ document.getElementById("domainModal").style.display="none"
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
async function saveDomain(){
|
||||
|
||||
const id=document.getElementById("domain_id").value
|
||||
|
||||
const data={
|
||||
|
||||
domain_name:domain_name.value,
|
||||
provider:domain_provider.value,
|
||||
ip_address:domain_ip.value,
|
||||
yearly_cost:domain_cost.value,
|
||||
notes:domain_notes.value
|
||||
domain_name:document.getElementById("domain_name").value,
|
||||
provider:document.getElementById("domain_provider").value,
|
||||
ip_address:document.getElementById("domain_ip").value,
|
||||
yearly_cost:document.getElementById("domain_cost").value || null,
|
||||
notes:document.getElementById("domain_notes").value
|
||||
|
||||
}
|
||||
|
||||
@@ -861,11 +859,11 @@ closeDomainModal()
|
||||
|
||||
loadDomains()
|
||||
loadMapping()
|
||||
loadCosts()
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
async function deleteDomain(id){
|
||||
|
||||
await fetch(API+"/domains/"+id,{method:"DELETE"})
|
||||
|
||||
Reference in New Issue
Block a user