From 7f71f1d5fe33ae232a51ab2b1a810eaf97b1aac8 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 25 May 2020 12:36:55 +0300 Subject: [PATCH] Move `objectToArray()` to utils. Signed-off-by: XhmikosR --- db_graph.php | 1 + scripts/pi-hole/js/db_graph.js | 24 +++--------------------- scripts/pi-hole/js/index.js | 24 +++--------------------- scripts/pi-hole/js/utils.js | 23 +++++++++++++++++++++-- 4 files changed, 28 insertions(+), 44 deletions(-) diff --git a/db_graph.php b/db_graph.php index fba0909b..98b66cb3 100644 --- a/db_graph.php +++ b/db_graph.php @@ -77,6 +77,7 @@ $token = $_SESSION['token']; + " + title + "
"; @@ -188,6 +206,7 @@ function stateLoadCallback(itemName) { window.utils = (function () { return { escapeHtml: escapeHtml, + objectToArray: objectToArray, showAlert: showAlert, datetime: datetime, disableAll: disableAll,