From 517fa24fe387bd4589b70d5a48751055bc44e99c Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sun, 25 Mar 2018 13:44:48 +0200 Subject: [PATCH] Show "N/A" for queries where the reply has not yet reached the Pi-hole Signed-off-by: DL6ER --- 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 fbfb9a0e..d4c469b2 100644 --- a/scripts/pi-hole/js/queries.js +++ b/scripts/pi-hole/js/queries.js @@ -218,7 +218,11 @@ $(document).ready(function() { if(data.length > 6 && !blocked) { $("td:eq(5)", row).css("color","black"); - if (data[6] === "1") + if (data[6] === "0") + { + $("td:eq(5)", row).html("N/A"); + } + else if (data[6] === "1") { $("td:eq(5)", row).html("NODATA-" + data[1]); }