From 15364b500c79f215da638129f485feedd001a016 Mon Sep 17 00:00:00 2001 From: RD WebDesign Date: Tue, 21 Nov 2023 03:53:28 -0300 Subject: [PATCH] Add pagination controls to Local records pages Signed-off-by: RD WebDesign --- scripts/pi-hole/js/settings-dns-records.js | 4 ++++ settings-dnsrecords.lp | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/pi-hole/js/settings-dns-records.js b/scripts/pi-hole/js/settings-dns-records.js index cf288b5d..616cb367 100644 --- a/scripts/pi-hole/js/settings-dns-records.js +++ b/scripts/pi-hole/js/settings-dns-records.js @@ -100,7 +100,9 @@ function populateDataTable(endpoint) { }, dom: "<'row'<'col-sm-6'l><'col-sm-6'f>>" + + "<'row'<'col-sm-12'p>>" + "<'row'<'col-sm-12'<'table-responsive'tr>>>" + + "<'row'<'col-sm-12'p>>" + "<'row'<'col-sm-12'i>>", lengthMenu: [ [10, 25, 50, 100, -1], @@ -228,6 +230,7 @@ $(document).ready(function () { $("#Hdomain").val(""); $("#Hip").val(""); $("#hosts-Table").DataTable().ajax.reload(null, false); + $("#hosts-Table").DataTable().rows().deselect(); }) .fail(function (data, exception) { utils.enableAll(); @@ -254,6 +257,7 @@ $(document).ready(function () { $("#Cdomain").val(""); $("#Ctarget").val(""); $("#cnameRecords-Table").DataTable().ajax.reload(null, false); + $("#cnameRecords-Table").DataTable().rows().deselect(); }) .fail(function (data, exception) { utils.enableAll(); diff --git a/settings-dnsrecords.lp b/settings-dnsrecords.lp index 31e47320..eecee140 100644 --- a/settings-dnsrecords.lp +++ b/settings-dnsrecords.lp @@ -60,7 +60,7 @@ mg.include('scripts/pi-hole/lua/settings_header.lp','r') Domain IP - Action + @@ -125,7 +125,7 @@ mg.include('scripts/pi-hole/lua/settings_header.lp','r') Domain Target TTL - Action +