diff --git a/scripts/pi-hole/js/db_queries.js b/scripts/pi-hole/js/db_queries.js index 5d245af9..d2317e6b 100644 --- a/scripts/pi-hole/js/db_queries.js +++ b/scripts/pi-hole/js/db_queries.js @@ -273,7 +273,7 @@ $(document).ready(function() { }); $("#all-queries tbody").on( "click", "button", function () { var data = tableApi.row( $(this).parents("tr") ).data(); - if (data[4] === "1") + if (data[4] === 1 || data[4] === 4 || data[5] === 5) { add(data[2],"white"); } diff --git a/scripts/pi-hole/js/queries.js b/scripts/pi-hole/js/queries.js index d1333102..dafa4ac3 100644 --- a/scripts/pi-hole/js/queries.js +++ b/scripts/pi-hole/js/queries.js @@ -352,7 +352,7 @@ $(document).ready(function() { $("#all-queries tbody").on( "click", "button", function () { var data = tableApi.row( $(this).parents("tr") ).data(); - if (data[4] === "1" || data[4] === "5") + if (data[4] === "1" || data[4] === "4" || data[4] === "5") { add(data[2],"white"); }