diff --git a/scripts/pi-hole/js/customcname.js b/scripts/pi-hole/js/customcname.js index e78e4a7e..e0f31760 100644 --- a/scripts/pi-hole/js/customcname.js +++ b/scripts/pi-hole/js/customcname.js @@ -124,10 +124,6 @@ function deleteCustomCNAME() { "Custom CNAME deleted", domain + ": " + target ); - - // Clean up field values and reload table data - $("#domain").val(""); - $("#target").val(""); table.ajax.reload(); } else { utils.showAlert("error", "fas fa-times", "Failure! Something went wrong", response.message); diff --git a/scripts/pi-hole/js/customdns.js b/scripts/pi-hole/js/customdns.js index 865f54b0..b8782883 100644 --- a/scripts/pi-hole/js/customdns.js +++ b/scripts/pi-hole/js/customdns.js @@ -84,7 +84,7 @@ function addCustomDNS() { // Clean up field values and reload table data $("#domain").val(""); - $("#id").val(""); + $("#ip").val(""); table.ajax.reload(); } else { utils.showAlert("error", "fas fa-times", "Failure! Something went wrong", response.message); @@ -113,10 +113,6 @@ function deleteCustomDNS() { utils.enableAll(); if (response.success) { utils.showAlert("success", "far fa-check-circle", "Custom DNS deleted", domain + ": " + ip); - - // Clean up field values and reload table data - $("#domain").val(""); - $("#id").val(""); table.ajax.reload(); } else { utils.showAlert("error", "fas fa-times", "Failure! Something went wrong", response.message);