From 3d1a7f35b57772d045cbb5459251d0b7968fba2f Mon Sep 17 00:00:00 2001 From: gschwab Date: Thu, 26 Jun 2014 09:37:28 +0200 Subject: [PATCH] graph management - multi edge definitions --- .../aardvark/frontend/js/views/graphManagementView.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/apps/system/aardvark/frontend/js/views/graphManagementView.js b/js/apps/system/aardvark/frontend/js/views/graphManagementView.js index 1656617d4e..41581a584a 100644 --- a/js/apps/system/aardvark/frontend/js/views/graphManagementView.js +++ b/js/apps/system/aardvark/frontend/js/views/graphManagementView.js @@ -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) {