mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Remove superfluous copy-paste remnants in API /clients call (#3016)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user