mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 00:25:06 +02:00
Store browser height and width in session using ajax call
Modify html/includes/print-graphrow.inc.php to make use of the new Session variable
This commit is contained in:
@@ -37,6 +37,17 @@ else {
|
||||
);
|
||||
}//end if
|
||||
|
||||
if($_SESSION['screen_width'])
|
||||
{
|
||||
$graph_array['width'] = $_SESSION['screen_width']/5.5;
|
||||
}
|
||||
|
||||
if($_SESSION['screen_height'])
|
||||
{
|
||||
$graph_array['height'] = $_SESSION['screen_height']/6;
|
||||
}
|
||||
|
||||
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
|
||||
$graph_data = array();
|
||||
|
||||
Reference in New Issue
Block a user