diff --git a/html/pages/devices.inc.php b/html/pages/devices.inc.php
index aaac360e3..3ce9c82f5 100644
--- a/html/pages/devices.inc.php
+++ b/html/pages/devices.inc.php
@@ -191,14 +191,25 @@ if($format == "graph") {
$width=315;
}
- echo("
\
-
\
- ', CENTER, LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 150);\" onmouseout=\"return nd();\" >".
- "
-
- ");
+ $graph_array = array();
+ $graph_array['type'] = $graph_type;
+ $graph_array['device'] = $device['device_id'];
+ $graph_array['to'] = $config['time']['now'];
+ $graph_array['from'] = $config['time']['day'];
+ $graph_array['height'] = '110';
+ $graph_array['width'] = $width;
+ $graph_array['legend'] = 'no';
+ $graph_array['title'] = 'yes';
+
+ $graph_array_zoom = $graph_array;
+ $graph_array_zoom['height'] = '150';
+ $graph_array_zoom['width'] = '400';
+ $graph_array_zoom['legend'] = 'yes';
+
+ $overlib_link = "device/device=".$device['device_id']."/";
+ echo "";
+ echo overlib_link($overlib_link, generate_lazy_graph_tag($graph_array), generate_graph_tag($graph_array_zoom), NULL);
+ echo "
\n\n";
}
}
}