diff --git a/scripts/pi-hole/js/groups-adlists.js b/scripts/pi-hole/js/groups-adlists.js index 4b6bec03..57637522 100644 --- a/scripts/pi-hole/js/groups-adlists.js +++ b/scripts/pi-hole/js/groups-adlists.js @@ -157,7 +157,7 @@ function editAdlist() { var tr = $(this).closest("tr"); var id = tr.find("#id").val(); - var status = tr.find("#status").val(); + var status = tr.find("#status").is(":checked") ? 1 : 0; var comment = tr.find("#comment").val(); var groups = tr.find("#multiselect").val(); diff --git a/scripts/pi-hole/js/groups-domains.js b/scripts/pi-hole/js/groups-domains.js index ac611e82..6c0b8655 100644 --- a/scripts/pi-hole/js/groups-domains.js +++ b/scripts/pi-hole/js/groups-domains.js @@ -168,7 +168,7 @@ function editDomain() var tr = $(this).closest("tr"); var id = tr.find("#id").val(); var type = tr.find("#type").val(); - var status = tr.find("#status").val(); + var status = tr.find("#status").is(":checked") ? 1 : 0; var comment = tr.find("#comment").val(); var groups = tr.find("#multiselect").val(); diff --git a/scripts/pi-hole/js/groups.js b/scripts/pi-hole/js/groups.js index 01dff591..a645dd06 100644 --- a/scripts/pi-hole/js/groups.js +++ b/scripts/pi-hole/js/groups.js @@ -120,7 +120,7 @@ function editGroup() var tr = $(this).closest("tr"); var id = tr.find("td:eq(0)").html(); var name = tr.find("#name").val(); - var status = tr.find("#status").val(); + var status = tr.find("#status").is(":checked") ? 1 : 0; var desc = tr.find("#desc").val(); showAlert('info');