From b5faf010b07a8b1a910f9bb4e555c80b11b6aa77 Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Tue, 24 Oct 2017 10:07:07 +0200 Subject: [PATCH] Fixed filter to show interface graph or not --- .../include/javascript/functions_pandora_networkmap.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/javascript/functions_pandora_networkmap.js b/pandora_console/include/javascript/functions_pandora_networkmap.js index a9c36700a8..9ecf90a045 100644 --- a/pandora_console/include/javascript/functions_pandora_networkmap.js +++ b/pandora_console/include/javascript/functions_pandora_networkmap.js @@ -754,6 +754,12 @@ function get_interface_data_to_table(node_selected, selected_links) { } else { jQuery.each(data, function (j, interface) { + if (interface['graph'] == "") { + var interf_graph = "--"; + } + else { + var interf_graph = interface['graph']; + } $("#interface_information").find('tbody') .append($('') .append($('') @@ -763,7 +769,7 @@ function get_interface_data_to_table(node_selected, selected_links) { .html(interface['status']) ) .append($('') - .html(interface['graph']) + .html(interf_graph) ) .append($('') .html(interface['ip'])