Fixed js config not loading
This commit is contained in:
@@ -31,7 +31,7 @@ $CONFIG = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
// === JavaScript Variables ===
|
// === JavaScript Variables ===
|
||||||
$CONFIG += [
|
$CONFIG_JS = [
|
||||||
// === Index System Wide ===
|
// === Index System Wide ===
|
||||||
'index_admin_status_update_interval' => 50000,
|
'index_admin_status_update_interval' => 50000,
|
||||||
|
|
||||||
|
|||||||
@@ -53,15 +53,8 @@ unset($nav_order,$nav_admin,$nav_hidden);
|
|||||||
<title><?= htmlspecialchars($CONFIG['site_name']) ?></title>
|
<title><?= htmlspecialchars($CONFIG['site_name']) ?></title>
|
||||||
<link rel="stylesheet" href="css/style.css">
|
<link rel="stylesheet" href="css/style.css">
|
||||||
<script>
|
<script>
|
||||||
const CONFIG = {
|
const CONFIG = <?= json_encode($CONFIG_JS, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) ?>;
|
||||||
options_status_interval: <?= ($CONFIG['options_status_interval'] ?? 30000) ?>,
|
</script>
|
||||||
options_status_services: <?= ($CONFIG['options_status_services'] ?? []) ?>,
|
|
||||||
shell_print_howto_to_logconsole: <?= ($CONFIG['shell_print_howto_to_logconsole'] ?? false) ?>,
|
|
||||||
home_chart_color_threshold_high: <?= ($CONFIG['home_chart_color_threshold_high'] ?? 70) ?>,
|
|
||||||
home_chart_color_threshold_medium: <?= ($CONFIG['home_chart_color_threshold_medium'] ?? 50) ?>,
|
|
||||||
index_admin_status_update_interval: <?= ($CONFIG['index_admin_status_update_interval'] ?? 50) ?>,
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header class="site-header">
|
<header class="site-header">
|
||||||
|
|||||||
Reference in New Issue
Block a user