Revert "Fix AJAX JSON data (#2742)"

This reverts commit 340d373711, reversing
changes made to 1ed1efdc91.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2023-10-13 09:41:10 +02:00
parent 2fbef7f40e
commit 1146248964
9 changed files with 21 additions and 25 deletions

View File

@@ -119,11 +119,10 @@ function piholeChange(action, duration) {
$.ajax({
url: "/api/dns/blocking",
method: "POST",
dataType: "json",
data: {
data: JSON.stringify({
blocking: action === "enable",
timer: parseInt(duration, 10) > 0 ? parseInt(duration, 10) : null,
},
}),
})
.done(function (data) {
if (data.blocking === action + "d") {