Remove superfluous copy-paste remnants in API /clients call (#3016)

This commit is contained in:
Dominik
2024-05-08 10:06:36 +02:00
committed by GitHub
-13
View File
@@ -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();