Fixed graphs in reports. Ticket #411
This commit is contained in:
parent
8e0dd33c85
commit
44724e648d
|
@ -5740,8 +5740,13 @@ function reporting_custom_graph($report, $content, $type = 'dinamic',
|
|||
$return['type'] = 'custom_graph';
|
||||
|
||||
if (empty($content['name'])) {
|
||||
if ($type_report == "custom_graph") {
|
||||
$content['name'] = __('Custom graph');
|
||||
}
|
||||
else {
|
||||
$content['name'] = __('Simple graph');
|
||||
}
|
||||
}
|
||||
|
||||
$return['title'] = $content['name'];
|
||||
$return['subtitle'] = $graph['name'];
|
||||
|
|
|
@ -1671,8 +1671,7 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend,
|
|||
plot.setSelection(ranges);
|
||||
});
|
||||
|
||||
//~ var legends = $('#legend_' + graph_id + ' .legendLabel');
|
||||
|
||||
var legends = $('#legend_' + graph_id + ' .legendLabel');
|
||||
|
||||
var updateLegendTimeout = null;
|
||||
var latestPosition = null;
|
||||
|
|
Loading…
Reference in New Issue