mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Fix the Delete button, to use the new dataSrc values
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
@@ -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 = `<button type="button"
|
||||
class="btn btn-danger btn-xs"
|
||||
id="deleteRevServers${utils.hexEncode(data)}"
|
||||
data-tag="${data}"
|
||||
id="deleteRevServers_${dataIndex}"
|
||||
data-index="${dataIndex}"
|
||||
data-tag="${Object.values(data)}"
|
||||
data-type="revServers"
|
||||
title="Delete"
|
||||
${setByEnv ? "disabled" : ""}>
|
||||
<span class="far fa-trash-alt"></span>
|
||||
</button>`;
|
||||
|
||||
Reference in New Issue
Block a user