fixed bug: pie graph not showing in mobile's tactical view dashboard widget

This commit is contained in:
alejandro-campos 2018-11-29 16:08:41 +01:00
parent ad743d332e
commit 8d2daf3948
2 changed files with 3 additions and 1 deletions

View File

@ -9970,7 +9970,7 @@ You can of course remove the warnings, that's why we include the source and do n
$output .= 'parameters["page"] = "include/ajax/events";';
$output .= 'parameters["total_events"] = 1;';
$output .= '$.ajax({type: "GET",url: "ajax.php",data: parameters,';
$output .= '$.ajax({type: "GET",url: "/pandora_console/ajax.php",data: parameters,';
$output .= 'success: function(data) {';
$output .= '$("#total_events").text(data);';
$output .= '}';

View File

@ -409,6 +409,8 @@ function flot_pie_chart ($values, $labels, $width, $height, $water_mark,
$colors = implode($separator, $colors);
}
include_javascript_dependencies_flot_graph();
$return .= "<script type='text/javascript'>";
$return .= "pandoraFlotPie('$graph_id', '$values', '$labels',