mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Rebase
This commit is contained in:
@ -473,10 +473,17 @@ function generate_lazy_graph_tag($args) {
|
||||
case 'height':
|
||||
$h = $arg;
|
||||
break;
|
||||
case 'lazy_w':
|
||||
$lazy_w = $arg;
|
||||
break;
|
||||
}
|
||||
$urlargs[] = $key."=".urlencode($arg);
|
||||
}
|
||||
|
||||
if(isset($lazy_w)) {
|
||||
$w=$lazy_w;
|
||||
}
|
||||
|
||||
if ($config['enable_lazy_load'] === true) {
|
||||
return '<img class="lazy graphs" width="'.$w.'" height="'.$h.'" data-original="graph.php?' . implode('&',$urlargs).'" border="0" />';
|
||||
}
|
||||
|
Reference in New Issue
Block a user