From 4ab7fe76ca30aea289bd80862bbf081e31c0944b Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Fri, 7 Dec 2012 15:06:00 -0500 Subject: [PATCH] fixed synapse created on arranged maps --- app/views/synapses/create.js.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/synapses/create.js.erb b/app/views/synapses/create.js.erb index e2657505..05a73133 100644 --- a/app/views/synapses/create.js.erb +++ b/app/views/synapses/create.js.erb @@ -13,8 +13,12 @@ if (map1 != null) { else if (rg != null) { mymap = rg; } + + else if (map != null) { + mymap = map; + } - if (mymap == fd || mymap == rg) { + if (mymap == fd || mymap == rg || mymap = map) { temp1 = mymap.graph.getNode(<%= @synapse.item1.id %>); if (temp1 == null) { newnode = <%= @synapse.item1.self_as_json.html_safe %>;