1
0
Fork 0

graph management - multi edge definitions

This commit is contained in:
gschwab 2014-06-26 09:37:28 +02:00
parent f61841283d
commit 3d1a7f35b5
1 changed files with 3 additions and 3 deletions

View File

@ -161,7 +161,7 @@
vertexCollections = _.pluck($('#newVertexCollections').select2("data"), "text"),
edgeDefinitions = [],
self = this,
index = 1,
index = 0,
collection,
from,
to,
@ -169,8 +169,8 @@
while(searchForNext) {
collection = $('#newEdgeDefinitions' + index).val();
if (collection !== "") {
collection = _.pluck($('#s2id_newEdgeDefinitions' + index).select2("data"), "text")[0];
if (collection && collection !== "") {
from = _.pluck($('#s2id_fromCollections' + index).select2("data"), "text");
to = _.pluck($('#s2id_toCollections' + index).select2("data"), "text");
if (from !== 1 && to !== 1) {