added destroy.js.erb for responding to synapse destruction. Also select edges by default on creation in create.js.erb
This commit is contained in:
parent
4e7c7f5d1b
commit
c739f58b4b
2 changed files with 3 additions and 2 deletions
|
@ -28,12 +28,13 @@ if ( Mconsole != null) {
|
|||
});
|
||||
temp.data.$direction = d;
|
||||
Mconsole.fx.plotLine(temp, Mconsole.canvas);
|
||||
selectEdge(temp);
|
||||
Mconsole.fx.animate({
|
||||
modes: ['edge-property:lineWidth'],
|
||||
modes: ['edge-property:lineWidth:color'],
|
||||
duration: 400
|
||||
});
|
||||
}
|
||||
else {
|
||||
json = <%= @synapse.selfplusnodes_as_json.html_safe %>
|
||||
initialize("chaotic");
|
||||
}
|
||||
}
|
||||
|
|
0
app/views/synapses/destroy.js.erb
Normal file
0
app/views/synapses/destroy.js.erb
Normal file
Loading…
Reference in a new issue