left clicking the canvas cancels synapse creation, instead of creating a synapse

This commit is contained in:
Devin Howard 2016-12-11 17:07:25 -05:00
parent 1ba339b3be
commit b98f9b4bbc

View file

@ -315,10 +315,8 @@ const Create = {
Create.newSynapse.description = $(this).val() Create.newSynapse.description = $(this).val()
}) })
$('#synapse_desc').focusout(function() { $('#synapse_desc').focusout(function(e) {
if (Create.newSynapse.beingCreated) { Create.newSynapse.hide()
Synapse.createSynapseLocally()
}
}) })
$('#synapse_desc').keydown(function(e) { $('#synapse_desc').keydown(function(e) {