mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #873 from laf/issue-872
Added config option web_mouseover to disable/enable mouseover popups
This commit is contained in:
@ -188,7 +188,11 @@ function overlib_link($url, $text, $contents, $class)
|
||||
|
||||
$contents = str_replace("\"", "\'", $contents);
|
||||
$output = '<a class="'.$class.'" href="'.$url.'"';
|
||||
$output .= " onmouseover=\"return overlib('".$contents."'".$config['overlib_defaults'].", WRAP,HAUTO,VAUTO);\" onmouseout=\"return nd();\">";
|
||||
if ($config['web_mouseover'] === FALSE) {
|
||||
$output .= ">";
|
||||
} else {
|
||||
$output .= " onmouseover=\"return overlib('".$contents."'".$config['overlib_defaults'].", WRAP,HAUTO,VAUTO);\" onmouseout=\"return nd();\">";
|
||||
}
|
||||
$output .= $text."</a>";
|
||||
|
||||
return $output;
|
||||
|
@ -259,6 +259,7 @@ $config['rrdgraph_def_text'] = "-c BACK#EEEEEE00 -c SHADEA#EEEEEE00 -c SHADEB#E
|
||||
$config['rrdgraph_def_text'] .= " -c MGRID#FF9999 -c FRAME#5e5e5e -c ARROW#5e5e5e -R normal";
|
||||
$config['rrdgraph_real_95th'] = FALSE; # Set to TRUE if you want to display the 95% based on the highest value. (aka real 95%)
|
||||
$config['overlib_defaults'] = ",FGCOLOR,'#ffffff', BGCOLOR, '#e5e5e5', BORDER, 5, CELLPAD, 4, CAPCOLOR, '#555555', TEXTCOLOR, '#3e3e3e'";
|
||||
$config['web_mouseover'] = TRUE;// Set this to false if you want to disable the mouseover popup graphs
|
||||
|
||||
$list_colour_a = "#ffffff";
|
||||
$list_colour_b = "#eeeeee";
|
||||
|
Reference in New Issue
Block a user