Show "N/A" for queries where the reply has not yet reached the Pi-hole

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2018-03-25 13:44:48 +02:00
parent c1ffcdd997
commit 517fa24fe3

View File

@@ -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]);
}