Ensure type is transmitted when editing lists

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2023-09-27 21:31:03 +02:00
parent 3a9144d3b7
commit 60ed8d2352

View File

@@ -534,7 +534,8 @@ function addAdlist(event) {
});
}
function editAdlist() {
function editAdlist(event) {
const type = event.data.type;
const elem = $(this).attr("id");
const tr = $(this).closest("tr");
const address = tr.attr("data-id");
@@ -584,6 +585,7 @@ function editAdlist() {
groups: groups,
comment: comment,
enabled: enabled,
type: type,
}),
success: function () {
utils.enableAll();