From 26503eaf526b87e78689ad40bee08c9a70cbbe2b Mon Sep 17 00:00:00 2001 From: jokob-sk Date: Mon, 21 Oct 2024 21:50:01 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=86=95=20IP=20clickable=20in=20Devices=20?= =?UTF-8?q?views=20#856?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/devices.php | 32 +++++++++++++++++++------ front/php/templates/language/es_es.json | 0 2 files changed, 25 insertions(+), 7 deletions(-) mode change 100644 => 100755 front/php/templates/language/es_es.json diff --git a/front/devices.php b/front/devices.php index d45a0f49..a2cb9aa8 100755 --- a/front/devices.php +++ b/front/devices.php @@ -545,15 +545,33 @@ function initializeDatatable (status) { } } }, - // IP address + // IP address + {targets: [mapIndx(8)], + 'createdCell': function (td, cellData, rowData, row, col) { + if (!emptyArr.includes(cellData)){ + $(td).html (` + + ${cellData} + + + + + `); + } else { + $(td).html (''); + } + } + }, + // IP address (ordeable) {targets: [mapIndx(12)], 'createdCell': function (td, cellData, rowData, row, col) { - if (!emptyArr.includes(cellData)){ - $(td).html (''+cellData+''); - } else { - $(td).html (''); - } - } }, + if (!emptyArr.includes(cellData)){ + $(td).html (`${cellData}`); + } else { + $(td).html (''); + } + } + }, // Favorite {targets: [mapIndx(4)], diff --git a/front/php/templates/language/es_es.json b/front/php/templates/language/es_es.json old mode 100644 new mode 100755