Don't use idstring in messages when it's not necessary

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König
2023-01-20 15:03:14 +01:00
parent acac90f79d
commit 4473955291
6 changed files with 72 additions and 32 deletions

View File

@@ -65,7 +65,7 @@ function deleteNetworkEntry() {
var id = tr.attr("data-id");
utils.disableAll();
utils.showAlert("info", "", "Deleting network table entry with ID " + parseInt(id, 10), "...");
utils.showAlert("info", "", "Deleting network table entry...");
$.ajax({
url: "scripts/pi-hole/php/network.php",
method: "post",
@@ -74,12 +74,7 @@ function deleteNetworkEntry() {
success: function (response) {
utils.enableAll();
if (response.success) {
utils.showAlert(
"success",
"far fa-trash-alt",
"Successfully deleted network table entry # ",
id
);
utils.showAlert("success", "far fa-trash-alt", "Successfully deleted network table entry");
tableApi.row(tr).remove().draw(false).ajax.reload(null, false);
} else {
utils.showAlert(