From caf9e2af0916c6aa342aac6f5ca39c5d0378953b Mon Sep 17 00:00:00 2001 From: sgtlaggy <8661717+sgtlaggy@users.noreply.github.com> Date: Sat, 5 Sep 2020 13:59:49 -0700 Subject: [PATCH] fix whitelist buttons on query log page Signed-off-by: sgtlaggy <8661717+sgtlaggy@users.noreply.github.com> --- scripts/pi-hole/js/db_queries.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pi-hole/js/db_queries.js b/scripts/pi-hole/js/db_queries.js index 2f56fcd7..7dec98cd 100644 --- a/scripts/pi-hole/js/db_queries.js +++ b/scripts/pi-hole/js/db_queries.js @@ -393,7 +393,7 @@ $(function () { }); $("#all-queries tbody").on("click", "button", function () { var data = tableApi.row($(this).parents("tr")).data(); - if (data[4] === 1 || data[4] === 4 || data[5] === 5) { + if ([1, 4, 5, 9, 10, 11].indexOf(data[4]) !== -1) { add(data[2], "white"); } else { add(data[2], "black");