From acac02a672099bd068de54530511d738335bab20 Mon Sep 17 00:00:00 2001 From: jokob-sk Date: Sat, 26 Jul 2025 17:19:05 +1000 Subject: [PATCH] fixes --- front/deviceDetails.php | 1 - front/deviceDetailsEvents.php | 6 +++++- front/js/common.js | 5 ----- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/front/deviceDetails.php b/front/deviceDetails.php index c6f76a2d..512fee30 100755 --- a/front/deviceDetails.php +++ b/front/deviceDetails.php @@ -414,7 +414,6 @@ async function renderSmallBoxes() { } const deviceData = await response.json(); - console.log(deviceData); // Prepare custom data const customData = [ diff --git a/front/deviceDetailsEvents.php b/front/deviceDetailsEvents.php index 98ffa53b..1027d4df 100755 --- a/front/deviceDetailsEvents.php +++ b/front/deviceDetailsEvents.php @@ -19,6 +19,7 @@ + @@ -41,7 +42,7 @@ function loadEventsData() { mac = getMac() const rawSql = ` - SELECT eve_DateTime, eve_EventType, eve_IP, eve_AdditionalInfo + SELECT eve_DateTime, eve_DateTime, eve_EventType, eve_IP, eve_AdditionalInfo FROM Events WHERE eve_MAC = "${mac}" AND ( @@ -61,6 +62,7 @@ function loadEventsData() { const formattedDate = rawDate ? localizeTimestamp(rawDate) : '-'; return [ formattedDate, + row.eve_DateTime, row.eve_EventType, row.eve_IP, row.eve_AdditionalInfo @@ -95,6 +97,8 @@ function initializeEventsDatatable (eventsRows) { 'pageLength' : eventsRows, 'columnDefs' : [ + { orderData: [1], targets: [0] }, + { visible: false, targets: [1] }, { targets: [0], 'createdCell': function (td, cellData, rowData, row, col) { diff --git a/front/js/common.js b/front/js/common.js index 72e261d1..a763fea2 100755 --- a/front/js/common.js +++ b/front/js/common.js @@ -1120,8 +1120,6 @@ function showSpinner(stringKey = 'Loading') { if (spinner.length && spinner.is(':visible')) { clearTimeout(spinnerTimeout); - console.log(spinner); - $("#loadingSpinnerText").text(text); spinner.addClass("visible"); @@ -1153,9 +1151,6 @@ function hideSpinner() { } - - - // -------------------------------------------------------- // Calls a backend function to add a front-end event to an execution queue function updateApi(apiEndpoints)