From 84b005673b72c7bec5621bf07aee5caa96e61e92 Mon Sep 17 00:00:00 2001 From: BigEd Date: Wed, 22 Dec 2010 21:16:50 +0000 Subject: [PATCH] give the names of the nodes in a shift-click group, if they have names --- expertWires.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/expertWires.js b/expertWires.js index 0b94749..2758469 100644 --- a/expertWires.js +++ b/expertWires.js @@ -480,10 +480,14 @@ function handleClick(e){ } } // if this is a shift-click, just find and highlight the pass-connected group + // and list the nodes (or nodenames, preferably) if(e.shiftKey) { getNodeGroup(w); nodelist = group; - s2 = "nodegroup from " + s2 + " (nodes: " + group.join(",") + ")"; + s2 = "nodegroup from " + s2 + + " (nodes: " + + group.map(function(x){return nodeName(x)?nodeName(x):x;}).join(",") + + ")"; } hiliteNode(nodelist); setStatus(s1, s2);