Skip to content
Snippets Groups Projects
Commit e1d3aa51 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

timeline: set focus to latest jobs

parent bfffe384
No related branches found
No related tags found
1 merge request!18OP#7365 PHP-8.1 - Upgrade - cronlog Viewer (monitors.ascii)https://projects.iml.unibe.ch/work_packages/7365
...@@ -591,6 +591,9 @@ class cronlogrenderer extends cronlog ...@@ -591,6 +591,9 @@ class cronlogrenderer extends cronlog
// Create a Timeline // Create a Timeline
var timeline = new vis.Timeline(container, items, options); var timeline = new vis.Timeline(container, items, options);
// set focus to newest jobs
timeline.moveTo("'.date("Y-m-d H:i:s", time()-60*60*24*4).'");
// fix: some timelines do not properly work ... but I make them visible // fix: some timelines do not properly work ... but I make them visible
$(\'#' . $sDivId . ' .vis-timeline\').css(\'visibility\', \'visible\'); $(\'#' . $sDivId . ' .vis-timeline\').css(\'visibility\', \'visible\');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment