mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 04:38:28 +00:00
Fix/simplify mass deletion of tables, simplify deleting local DNS / CNAME records
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -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);
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user