From 3c0c92e8b1abe8a0485d8f6458159a67aeca4947 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Wed, 11 Jan 2017 12:41:35 +0100 Subject: [PATCH] Hide "Whitelist" button on wildcard blocked entries (Query Log page) --- scripts/pi-hole/js/queries.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/pi-hole/js/queries.js b/scripts/pi-hole/js/queries.js index 428006c7..13a34730 100644 --- a/scripts/pi-hole/js/queries.js +++ b/scripts/pi-hole/js/queries.js @@ -103,10 +103,14 @@ $(document).ready(function() { tableApi = $("#all-queries").DataTable( { "rowCallback": function( row, data, index ){ status = data[4]; - if (status.substr(0,2) === "Pi") { + if (status === "Pi-holed (exact)") { $(row).css("color","red"); $("td:eq(5)", row).html( "" ); } + else if (status === "Pi-holed (wildcard)") { + $(row).css("color","red"); + $("td:eq(5)", row).html( "" ); + } else{ $(row).css("color","green"); $("td:eq(5)", row).html( "" );