hide synapse editing dialog on click in graphsettings.js

This commit is contained in:
Devin Howard 2013-01-30 18:58:27 -05:00
parent a080fa2ec4
commit 12d5e17e6c

View file

@ -73,6 +73,10 @@ function graphSettings(type) {
//Add also a click handler to nodes //Add also a click handler to nodes
onClick: function (node, eventInfo, e) { onClick: function (node, eventInfo, e) {
if (e.target.id != "infovis-canvas") return false; if (e.target.id != "infovis-canvas") return false;
//hide synapse editing dialog
$('#edit_synapse').hide();
//clicking on a node, or clicking on blank part of canvas? //clicking on a node, or clicking on blank part of canvas?
if (node.nodeFrom) { if (node.nodeFrom) {
selectEdgeOnClickHandler(node, e); selectEdgeOnClickHandler(node, e);