mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Keep field values when deleting + Fix typo
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user