diff --git a/scripts/pi-hole/js/groups-adlists.js b/scripts/pi-hole/js/groups-adlists.js index 407756a4..c0da2aab 100644 --- a/scripts/pi-hole/js/groups-adlists.js +++ b/scripts/pi-hole/js/groups-adlists.js @@ -205,7 +205,10 @@ function addAdlist() { } else showAlert("error", response.message); }, error: function(jqXHR, exception) { - showAlert("error", "Error while adding new adlist: " + jqXHR.responseText); + showAlert( + "error", + "Error while adding new adlist: " + jqXHR.responseText + ); console.log(exception); } }); @@ -238,7 +241,10 @@ function editAdlist() { } else showAlert("error", response.message); }, error: function(jqXHR, exception) { - showAlert("error", "Error while editing adlist with ID " + id + ": " + jqXHR.responseText); + showAlert( + "error", + "Error while editing adlist with ID " + id + ": " + jqXHR.responseText + ); console.log(exception); } }); @@ -260,7 +266,10 @@ function deleteAdlist() { } else showAlert("error", response.message); }, error: function(jqXHR, exception) { - showAlert("error", "Error while deleting adlist with ID " + id + ": " + jqXHR.responseText); + showAlert( + "error", + "Error while deleting adlist with ID " + id + ": " + jqXHR.responseText + ); console.log(exception); } }); diff --git a/scripts/pi-hole/js/groups-clients.js b/scripts/pi-hole/js/groups-clients.js index fe3abfdc..9943eec8 100644 --- a/scripts/pi-hole/js/groups-clients.js +++ b/scripts/pi-hole/js/groups-clients.js @@ -198,7 +198,10 @@ function addClient() { } else showAlert("error", response.message); }, error: function(jqXHR, exception) { - showAlert("error", "Error while adding new client: " + jqXHR.responseText); + showAlert( + "error", + "Error while adding new client: " + jqXHR.responseText + ); console.log(exception); } }); @@ -222,7 +225,10 @@ function editClient() { } else showAlert("error", response.message); }, error: function(jqXHR, exception) { - showAlert("error", "Error while editing client with ID " + id + ": " + jqXHR.responseText); + showAlert( + "error", + "Error while editing client with ID " + id + ": " + jqXHR.responseText + ); console.log(exception); } }); @@ -245,7 +251,10 @@ function deleteClient() { } else showAlert("error", response.message); }, error: function(jqXHR, exception) { - showAlert("error", "Error while deleting client with ID " + id + ": " + jqXHR.responseText); + showAlert( + "error", + "Error while deleting client with ID " + id + ": " + jqXHR.responseText + ); console.log(exception); } }); diff --git a/scripts/pi-hole/js/groups-domains.js b/scripts/pi-hole/js/groups-domains.js index a7fc6f85..8a4f2aa9 100644 --- a/scripts/pi-hole/js/groups-domains.js +++ b/scripts/pi-hole/js/groups-domains.js @@ -225,7 +225,10 @@ function addDomain() { } else showAlert("error", response.message); }, error: function(jqXHR, exception) { - showAlert("error", "Error while adding new domain: " + jqXHR.responseText); + showAlert( + "error", + "Error while adding new domain: " + jqXHR.responseText + ); console.log(exception); } }); @@ -260,7 +263,10 @@ function editDomain() { } else showAlert("error", response.message); }, error: function(jqXHR, exception) { - showAlert("error", "Error while editing domain with ID " + id + ": " + jqXHR.responseText); + showAlert( + "error", + "Error while editing domain with ID " + id + ": " + jqXHR.responseText + ); console.log(exception); } }); @@ -282,7 +288,10 @@ function deleteDomain() { } else showAlert("error", response.message); }, error: function(jqXHR, exception) { - showAlert("error", "Error while deleting domain with ID " + id + ": " + jqXHR.responseText); + showAlert( + "error", + "Error while deleting domain with ID " + id + ": " + jqXHR.responseText + ); console.log(exception); } }); diff --git a/scripts/pi-hole/js/groups.js b/scripts/pi-hole/js/groups.js index d7a2cc96..c14b3e7f 100644 --- a/scripts/pi-hole/js/groups.js +++ b/scripts/pi-hole/js/groups.js @@ -169,7 +169,10 @@ function editGroup() { } else showAlert("error", response.message); }, error: function(jqXHR, exception) { - showAlert("error", "Error while editing group with ID " + id + ": " + jqXHR.responseText); + showAlert( + "error", + "Error while editing group with ID " + id + ": " + jqXHR.responseText + ); console.log(exception); } }); @@ -191,7 +194,10 @@ function deleteGroup() { } else showAlert("error", response.message); }, error: function(jqXHR, exception) { - showAlert("error", "Error while deleting group with ID " + id + ": " + jqXHR.responseText); + showAlert( + "error", + "Error while deleting group with ID " + id + ": " + jqXHR.responseText + ); console.log(exception); } });