From 9512d61e1681131a8364bc3f755a6c9a2af04308 Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Mon, 27 Mar 2017 16:03:25 +0200 Subject: [PATCH] Added interface text to add i.link or u.link --- .../include/javascript/functions_pandora_networkmap.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/javascript/functions_pandora_networkmap.js b/pandora_console/include/javascript/functions_pandora_networkmap.js index bf2969e261..dfc8cd2a94 100644 --- a/pandora_console/include/javascript/functions_pandora_networkmap.js +++ b/pandora_console/include/javascript/functions_pandora_networkmap.js @@ -532,6 +532,9 @@ function update_link(row_index, id_link) { temp_link["status_start"] = "0"; temp_link["status_end"] = "0"; + temp_link["text_start"] = data["text_start"]; + temp_link["text_end"] = data["text_end"]; + $.each(graph.nodes, function(k, node) { if (node['id_agent'] == data['id_db_target']) { temp_link["target"] = graph.nodes[k]; @@ -1924,8 +1927,8 @@ function add_interface_link_js () { temp_link['status_end'] = "0"; - //temp_link['text_start'] = link['text_start']; - //temp_link['text_end'] = link['text_end']; + temp_link['text_start'] = data['text_start']; + temp_link['text_end'] = data['text_end']; jQuery.each(graph.nodes, function(j, node) { if (node['id_agent'] == data['id_db_target']) {