mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +00:00
pcap extraction buttons in top senders, topreceivers, top contacts
This commit is contained in:
parent
dfea97ef18
commit
aa96533947
3 changed files with 9 additions and 13 deletions
|
|
@ -786,7 +786,6 @@ function updateGraphsTableView(graph_table, view, graph_params, has_nindex, nind
|
|||
if(view.columns) {
|
||||
var url = http_prefix + (view.nindex_view ? "/lua/enterprise/get_nindex_flows.lua" : "/lua/enterprise/get_ts_table.lua");
|
||||
var params_obj = graph_params.ts_query.split(",").reduce(function(params, value) { var v = value.split(":"); params[v[0]] = v[1]; return params; }, {});
|
||||
var added_drilldown = false;
|
||||
|
||||
var columns = view.columns.map(function(col) {
|
||||
return {
|
||||
|
|
@ -799,15 +798,11 @@ function updateGraphsTableView(graph_table, view, graph_params, has_nindex, nind
|
|||
};
|
||||
});
|
||||
|
||||
if(has_nindex) {
|
||||
columns.unshift({
|
||||
title: "",
|
||||
field: "drilldown",
|
||||
css: {width: "1%"},
|
||||
});
|
||||
|
||||
added_drilldown = true;
|
||||
}
|
||||
columns.unshift({
|
||||
title: "",
|
||||
field: "drilldown",
|
||||
css: {width: "1%", "white-space": "nowrap"},
|
||||
});
|
||||
|
||||
/* Force reinstantiation */
|
||||
graph_table.removeData('datatable');
|
||||
|
|
@ -837,7 +832,7 @@ function updateGraphsTableView(graph_table, view, graph_params, has_nindex, nind
|
|||
var has_drilldown = (data && data.data.some(function(row) { return row.drilldown; }));
|
||||
|
||||
/* Remove the drilldown column if no drilldown is available */
|
||||
if(!has_drilldown && added_drilldown)
|
||||
if(!has_drilldown)
|
||||
$("table td:first-child, th:first-child", graph_table).remove();
|
||||
|
||||
if(data && data.stats && data.stats.loading_time) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue