Add globals, fixing timeline view

pull/3019/head
Isaac Connor 2020-08-11 13:47:37 -04:00
parent 0a7df075ae
commit 303cec92f6
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,12 @@
<?php
global $chart;
global $max_aspect_ratio;
global $monitors;
global $mode;
global $monEventSlots;
?>
.chartSize {
height: <?php echo $chart['height'] ?>px;
}
@ -19,6 +28,7 @@
.imageHeight {
<?php
switch ( $max_aspect_ratio ) {
case null:
case 1:
echo 'padding-top: 100%;'; break;
case 1.33: // 4:3

View File

@ -1,6 +1,11 @@
<?php
global $filterQuery;
global $monitors;
global $minTime;
global $midTime;
global $maxTime;
global $range;
global $majXScale;
?>
var filterQuery = '<?php echo validJsStr($filterQuery) ?>';