diff --git a/pandora_console/include/graphs/flot/pandora.flot.js b/pandora_console/include/graphs/flot/pandora.flot.js index 45208c12b8..95985cb874 100644 --- a/pandora_console/include/graphs/flot/pandora.flot.js +++ b/pandora_console/include/graphs/flot/pandora.flot.js @@ -2262,17 +2262,25 @@ function pandoraFlotArea( graph_id, values, legend, } $('#overview_' + graph_id).css('display', 'none'); - + if (menu) { var parent_height; $('#menu_overview_' + graph_id).click(function() { $('#overview_' + graph_id).toggle(); }); - $("#menu_export_csv_"+graph_id) - .click(function (event) { - event.preventDefault(); + $("#menu_export_csv_"+graph_id).click(function (e) { + e.preventDefault(); 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() { diff --git a/pandora_console/operation/agentes/stat_win.php b/pandora_console/operation/agentes/stat_win.php index 6b98cc931c..a9e3666a28 100644 --- a/pandora_console/operation/agentes/stat_win.php +++ b/pandora_console/operation/agentes/stat_win.php @@ -100,8 +100,11 @@ $alias = db_get_value ("alias","tagente","id_agente",$id_agent); + "; + echo"

" . __('The CSV export has been successful.') . "

"; + echo""; // Module id $id = (int) get_parameter ("id", 0); // Agent id