From 49d761c81ce09f0df0cd416b6225dd2156ca4a92 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Thu, 28 Feb 2013 21:00:09 -0500 Subject: [PATCH] comments --- .../Jit/graphsettings-event-handlers.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/Jit/graphsettings-event-handlers.js b/app/assets/javascripts/Jit/graphsettings-event-handlers.js index a0c155e8..72e1fc8a 100644 --- a/app/assets/javascripts/Jit/graphsettings-event-handlers.js +++ b/app/assets/javascripts/Jit/graphsettings-event-handlers.js @@ -29,16 +29,21 @@ function selectEdgeOnClickHandler(adj, e) { }//selectEdgeOnClickHandler function nodeDoubleClickHandler(node, e) { - if (node.getData('inCommons') == false) { - return; - } - if (userid == null) { return; } + if (node.getData('inCommons') == false) { + return; + } + + //this line adds it to the console if you close seek node.setData('inCommons', false); + + //this is just aesthetic deselectNode(node); + + //this adds the node to the map, if it's a map if (window.mapid) { $.post('/mappings', { @@ -52,6 +57,7 @@ function nodeDoubleClickHandler(node, e) { node.setData('mappingid', data.id); }); } + }//doubleClickNodeHandler function nodeWasDoubleClicked() {