mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Merge branch '2630-Exportación-Gráficas-relacionado-con-CSV' into 'develop'
Fixed bug in csv export graph See merge request artica/pandorafms!1814
This commit is contained in:
commit
4c4c874553
@ -2262,17 +2262,25 @@ function pandoraFlotArea( graph_id, values, legend,
|
|||||||
}
|
}
|
||||||
|
|
||||||
$('#overview_' + graph_id).css('display', 'none');
|
$('#overview_' + graph_id).css('display', 'none');
|
||||||
|
|
||||||
if (menu) {
|
if (menu) {
|
||||||
var parent_height;
|
var parent_height;
|
||||||
$('#menu_overview_' + graph_id).click(function() {
|
$('#menu_overview_' + graph_id).click(function() {
|
||||||
$('#overview_' + graph_id).toggle();
|
$('#overview_' + graph_id).toggle();
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#menu_export_csv_"+graph_id)
|
$("#menu_export_csv_"+graph_id).click(function (e) {
|
||||||
.click(function (event) {
|
e.preventDefault();
|
||||||
event.preventDefault();
|
|
||||||
plot.exportDataCSV();
|
plot.exportDataCSV();
|
||||||
|
var es_firefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
|
||||||
|
if(es_firefox){
|
||||||
|
$("#dialog").css('visibility', 'visible').dialog();
|
||||||
|
}
|
||||||
|
delete data_base[0].threshold;
|
||||||
|
plot = $.plot($('#' + graph_id), data_base,
|
||||||
|
$.extend(true, {}, options, {
|
||||||
|
legend: { show: true }
|
||||||
|
}));
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#menu_threshold_' + graph_id).click(function() {
|
$('#menu_threshold_' + graph_id).click(function() {
|
||||||
|
@ -100,8 +100,11 @@ $alias = db_get_value ("alias","tagente","id_agente",$id_agent);
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body bgcolor="#ffffff" style='background:#ffffff;'>
|
<body bgcolor="#ffffff" style='background:#ffffff;'>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
echo"<div id='dialog' title='".__('CSV Export Information')."' style='visibility:hidden;'>";
|
||||||
|
echo"<p>" . __('The CSV export has been successful.') . "</p>";
|
||||||
|
echo"</div>";
|
||||||
// Module id
|
// Module id
|
||||||
$id = (int) get_parameter ("id", 0);
|
$id = (int) get_parameter ("id", 0);
|
||||||
// Agent id
|
// Agent id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user