Merge pull request #1948 from pi-hole/tweak/datatables

Tweak to datatables column rendering
This commit is contained in:
yubiuser
2021-10-28 20:21:01 +02:00
committed by GitHub
11 changed files with 78 additions and 10 deletions

View File

@@ -64,6 +64,10 @@ $(function () {
);
},
},
{
targets: "_all",
render: $.fn.dataTable.render.text(),
},
],
lengthMenu: [
[10, 25, 50, 100, -1],
@@ -82,6 +86,7 @@ $(function () {
$(".deleteCustomCNAME").on("click", deleteCustomCNAME);
},
});
// Disable autocorrect in the search box
var input = document.querySelector("input[type=search]");
input.setAttribute("autocomplete", "off");