mirror of
https://github.com/pi-hole/web.git
synced 2026-05-01 22:24:08 +01:00
Merge pull request #1948 from pi-hole/tweak/datatables
Tweak to datatables column rendering
This commit is contained in:
@@ -124,6 +124,16 @@ function initTable() {
|
||||
{ data: "groups", searchable: false },
|
||||
{ data: null, width: "80px", orderable: false },
|
||||
],
|
||||
columnDefs: [
|
||||
{
|
||||
targets: [0, 2],
|
||||
orderable: false,
|
||||
},
|
||||
{
|
||||
targets: "_all",
|
||||
render: $.fn.dataTable.render.text(),
|
||||
},
|
||||
],
|
||||
drawCallback: function () {
|
||||
$('button[id^="deleteAdlist_"]').on("click", deleteAdlist);
|
||||
// Remove visible dropdown to prevent orphaning
|
||||
|
||||
Reference in New Issue
Block a user