Fix/simplify mass deletion of tables, simplify deleting local DNS / CNAME records

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2024-05-30 12:39:25 +02:00
parent 24977e8616
commit 75f54ff76a
3 changed files with 8 additions and 35 deletions

View File

@@ -98,13 +98,10 @@ $(function () {
className: "btn-sm datatable-bt deleteSelected",
action: function () {
// For each ".selected" row ...
var ids = [];
$("tr.selected").each(function () {
// ... add the row identified by "data-id".
ids.push(parseInt($(this).attr("data-id"), 10));
// ... delete the row identified by "data-id".
delMsg($(this).attr("data-id"));
});
// Delete all selected rows at once
delMsg(ids);
},
},
],