mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user