Merge remote-tracking branch 'refs/remotes/librenms/master' into ajax_headers_4

This commit is contained in:
pblasquez
2016-04-28 14:38:25 -07:00
7 changed files with 19 additions and 8 deletions
+2 -2
View File
@@ -108,7 +108,7 @@ else {
echo('</tr></table>');
$graph_array = $vars;
$graph_array['height'] = "300";
$graph_array['height'] = $config['webui']['min_graph_height'];
$graph_array['width'] = $graph_width;
if($_SESSION['screen_width']) {
@@ -125,7 +125,7 @@ else {
$graph_array['height'] = ($_SESSION['screen_height'] - ($_SESSION['screen_height']/2));
}
else {
$graph_array['height'] = ($_SESSION['screen_height'] - ($_SESSION['screen_height']/1.5));
$graph_array['height'] = max($graph_array['height'],($_SESSION['screen_height'] - ($_SESSION['screen_height']/1.5)));
}
}
+8
View File
@@ -11,11 +11,19 @@ $search_conf = array(
),
);
$graph_conf = array(
array('name' => 'webui.min_graph_height',
'descr' => 'Set the minimum graph height',
'type' => 'text',
),
);
echo '
<div class="panel-group" id="accordion">
<form class="form-horizontal" role="form" action="" method="post">
';
echo generate_dynamic_config_panel('Graph settings',true,$config_groups,$graph_conf);
echo generate_dynamic_config_panel('Search settings',true,$config_groups,$search_conf);
echo '