mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Change new config references
This commit is contained in:
@@ -229,7 +229,7 @@ function main () {
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
function initializeDatatable () {
|
||||
|
||||
// If the device has a small width (mobile) only show name, ip, and status columns.
|
||||
if (window.screen.width < 400) {
|
||||
var tableColumnShow = [10,11,12,1,2,3,4,5,6,8];
|
||||
} else {
|
||||
@@ -252,7 +252,6 @@ function initializeDatatable () {
|
||||
// 'order' : [[3,'desc'], [0,'asc']],
|
||||
|
||||
'columnDefs' : [
|
||||
// Only display all collums on non mobile device width - still in testing phase
|
||||
{visible: false, targets: tableColumnShow },
|
||||
{className: 'text-center', targets: [3, 8, 9] },
|
||||
{width: '80px', targets: [5, 6] },
|
||||
|
||||
@@ -85,8 +85,9 @@ if ($ENABLED_DARKMODE === True) {
|
||||
<!-- Servertime to the right of the hostname -->
|
||||
<script>
|
||||
<?php
|
||||
$conf_file = '../config/version.conf';
|
||||
$conf_file = '../config/pialert.conf';
|
||||
$conf_data = parse_ini_file($conf_file);
|
||||
# set timezone for server time in header
|
||||
date_default_timezone_set($conf_data['TZ']);
|
||||
?>
|
||||
var pia_servertime = new Date(<?php echo date("Y, n, j, G, i, s") ?>);
|
||||
|
||||
Reference in New Issue
Block a user