From af5cf6b98e46fe1e29606db6360cde68c606d72f Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Fri, 7 Oct 2016 09:07:12 +0200 Subject: [PATCH] New networkmaps in progress... (Click in node image is back) --- .../include/javascript/functions_pandora_networkmap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/javascript/functions_pandora_networkmap.js b/pandora_console/include/javascript/functions_pandora_networkmap.js index b8ec8a1d6a..625134e5e2 100644 --- a/pandora_console/include/javascript/functions_pandora_networkmap.js +++ b/pandora_console/include/javascript/functions_pandora_networkmap.js @@ -491,7 +491,7 @@ function edit_node(data, dblClick) { else { flag_edit_node = false; } - console.log(edit_node); + if (flag_edit_node) { d3.selectAll('.node_selected') .classed("node_selected", false); @@ -1067,7 +1067,6 @@ function over_node(d) { } function selected_node(d, selected_param, hold_other_selections) { - if (typeof(selected_param) == "boolean") { selected = !selected_param; //because the next negate } @@ -2524,6 +2523,7 @@ function draw_elements_graph() { .classed('dragable_node', true) //own dragable .on("mouseover", myMouseoverCircleFunction) .on("mouseout", myMouseoutCircleFunction) + .on("click", selected_node) .on("dblclick", function(d) { edit_node(d, true); })