From e687cb83affaf1edda76821189c1487072e03bba Mon Sep 17 00:00:00 2001 From: RD WebDesign Date: Sun, 4 Feb 2024 01:15:56 -0300 Subject: [PATCH] Fix the Delete button, to use the new dataSrc values Signed-off-by: RD WebDesign --- scripts/pi-hole/js/settings-dns.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/pi-hole/js/settings-dns.js b/scripts/pi-hole/js/settings-dns.js index 25901430..a1763589 100644 --- a/scripts/pi-hole/js/settings-dns.js +++ b/scripts/pi-hole/js/settings-dns.js @@ -206,13 +206,15 @@ function revServerDataTable() { // Remove visible dropdown to prevent orphaning $("body > .bootstrap-select.dropdown").remove(); }, - rowCallback: function (row, data) { - $(row).attr("data-id", data); + rowCallback: function (row, data, displayNum, displayIndex, dataIndex) { + $(row).attr("data-index", dataIndex); var button = ``;