diff --git a/scripts/pi-hole/js/groups-adlists.js b/scripts/pi-hole/js/groups-adlists.js index 21048759..766563c6 100644 --- a/scripts/pi-hole/js/groups-adlists.js +++ b/scripts/pi-hole/js/groups-adlists.js @@ -517,6 +517,7 @@ function addAdlist() { $("#new_address").val(""); $("#new_comment").val(""); table.ajax.reload(); + table.rows().deselect(); } else { utils.showAlert("error", "", "Error while adding new adlist: ", response.message); } diff --git a/scripts/pi-hole/js/groups-clients.js b/scripts/pi-hole/js/groups-clients.js index a9b04d4b..616f37c1 100644 --- a/scripts/pi-hole/js/groups-clients.js +++ b/scripts/pi-hole/js/groups-clients.js @@ -443,6 +443,7 @@ function addClient() { utils.showAlert("success", "fas fa-plus", "Successfully added client", ip); reloadClientSuggestions(); table.ajax.reload(null, false); + table.rows().deselect(); } else { utils.showAlert("error", "", "Error while adding new client", response.message); } diff --git a/scripts/pi-hole/js/groups-domains.js b/scripts/pi-hole/js/groups-domains.js index 8c692511..77d2d842 100644 --- a/scripts/pi-hole/js/groups-domains.js +++ b/scripts/pi-hole/js/groups-domains.js @@ -515,6 +515,7 @@ function addDomain() { commentEl.val(""); wildcardEl.prop("checked", false); table.ajax.reload(null, false); + table.rows().deselect(); } else { utils.showAlert("error", "", "Error while adding new " + domainRegex, response.message); } diff --git a/scripts/pi-hole/js/groups.js b/scripts/pi-hole/js/groups.js index 583d7fc4..c77ed9fe 100644 --- a/scripts/pi-hole/js/groups.js +++ b/scripts/pi-hole/js/groups.js @@ -288,6 +288,7 @@ function addGroup() { $("#new_name").val(""); $("#new_desc").val(""); table.ajax.reload(); + table.rows().deselect(); } else { utils.showAlert("error", "", "Error while adding new group", response.message); }