From a3b24e08aa35e7b27ba08f09d78dcb41ec92720f Mon Sep 17 00:00:00 2001 From: DL6ER Date: Mon, 9 Nov 2020 21:30:40 +0100 Subject: [PATCH] Reduce code-duplication by moving the addFromQueryLog() function into utils.js. This also fixes non-visible modals on the long-term query log page. Signed-off-by: DL6ER --- db_queries.php | 32 +++++++++++++ scripts/pi-hole/js/db_queries.js | 70 ++-------------------------- scripts/pi-hole/js/queries.js | 79 +------------------------------- scripts/pi-hole/js/utils.js | 78 ++++++++++++++++++++++++++++++- 4 files changed, 114 insertions(+), 145 deletions(-) diff --git a/db_queries.php b/db_queries.php index fd3b0606..6eb103f4 100644 --- a/db_queries.php +++ b/db_queries.php @@ -123,6 +123,37 @@ + + +
@@ -162,6 +193,7 @@ +