Remove array brackets from output

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
RD WebDesign
2022-03-01 00:05:12 -03:00
parent 1a42659d1e
commit 0467cb1f66
+2 -2
View File
@@ -321,14 +321,14 @@ function delMsg(ids) {
}
utils.disableAll();
var idstring = JSON.stringify(ids);
var idstring = ids.join(", ");
utils.showAlert("info", "", "Deleting messages: " + idstring, "...");
$.ajax({
url: "scripts/pi-hole/php/message.php",
method: "post",
dataType: "json",
data: { action: "delete_message", id: idstring, token: token },
data: { action: "delete_message", id: JSON.stringify(ids), token: token },
})
.done(function (response) {
utils.enableAll();