mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 02:38:28 +00:00
Revert "Fix AJAX JSON data (#2742)"
This reverts commit340d373711, reversing changes made to1ed1efdc91. Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user