create synapse if you click away from the synapse title form

This commit is contained in:
Devin Howard 2015-03-02 18:05:45 -05:00
parent e4d53162a7
commit 83551e317e

View file

@ -1047,7 +1047,11 @@ Metamaps.JIT = {
Metamaps.TopicCard.hideCard();
Metamaps.SynapseCard.hideCard();
Metamaps.Create.newTopic.hide();
Metamaps.Create.newSynapse.hide();
if ($('#new_synapse').is(":visible")) {
// Hide the new_synapse form and create the synapse!
Metamaps.Synapse.createSynapseLocally();
}//if
$('.rightclickmenu').remove();
// reset the draw synapse positions to false
Metamaps.Mouse.synapseStartCoordinates = [];