From b98f9b4bbceb0bc6eccb9549765e0a045dac2156 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Sun, 11 Dec 2016 17:07:25 -0500 Subject: [PATCH] left clicking the canvas cancels synapse creation, instead of creating a synapse --- frontend/src/Metamaps/Create.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/src/Metamaps/Create.js b/frontend/src/Metamaps/Create.js index 177e951f..07b3b956 100644 --- a/frontend/src/Metamaps/Create.js +++ b/frontend/src/Metamaps/Create.js @@ -315,10 +315,8 @@ const Create = { Create.newSynapse.description = $(this).val() }) - $('#synapse_desc').focusout(function() { - if (Create.newSynapse.beingCreated) { - Synapse.createSynapseLocally() - } + $('#synapse_desc').focusout(function(e) { + Create.newSynapse.hide() }) $('#synapse_desc').keydown(function(e) {