From 1a5f5f745b34cc242e5c2b0d48042266b932a627 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Mon, 4 Jun 2012 18:27:57 +0200 Subject: [PATCH] do not mark all nodes on empty string --- html/force.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/html/force.js b/html/force.js index 8e8b696..36a2ce5 100644 --- a/html/force.js +++ b/html/force.js @@ -45,6 +45,9 @@ cp.append("input") function show_node(mac) { d3.selectAll("#chart .node").classed("marked", false); + if (mac.length == 0) + return; + d3.selectAll("#chart .node").each( function(d) { if (d.id == mac) d3.select(this).classed("marked", true);