Add globals, fixing timeline view
parent
0a7df075ae
commit
303cec92f6
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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) ?>';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue