From c3336f781aefc4ee0221504354c3be4351801b70 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Fri, 3 May 2024 20:06:41 +0200 Subject: [PATCH] Remove superfluous copy-paste remnants in API /clients call Signed-off-by: DL6ER --- scripts/pi-hole/js/groups-clients.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/scripts/pi-hole/js/groups-clients.js b/scripts/pi-hole/js/groups-clients.js index 3b8bd637..4213c0eb 100644 --- a/scripts/pi-hole/js/groups-clients.js +++ b/scripts/pi-hole/js/groups-clients.js @@ -436,21 +436,10 @@ function editClient() { .val() .map(Number); const comment = tr.find("#comment_" + client).val(); - const enabled = tr.find("#enabled_" + client).is(":checked"); var done = "edited"; var notDone = "editing"; switch (elem) { - case "enabled_" + client: - if (!enabled) { - done = "disabled"; - notDone = "disabling"; - } else { - done = "enabled"; - notDone = "enabling"; - } - - break; case "multiselect_" + client: done = "edited groups of"; notDone = "editing groups of"; @@ -474,10 +463,8 @@ function editClient() { processData: false, contentType: "application/json; charset=utf-8", data: JSON.stringify({ - client: client, groups: groups, comment: comment, - enabled: enabled, }), success: function (data) { utils.enableAll();