1
0
Fork 0

new graph management

This commit is contained in:
gschwab 2014-06-25 09:14:45 +02:00
parent e88a788499
commit 466d13ddd2
2 changed files with 15 additions and 9 deletions

View File

@ -159,16 +159,21 @@
edgeDefinitions = [], edgeDefinitions = [],
self = this, self = this,
hasNext = false, hasNext = false,
newEdgeDefinitions1; newEdgeDefinitions1,
from,
to;
newEdgeDefinitions1 = $("#newEdgeDefinitions1").val();
console.log("vertexCollections"); if (newEdgeDefinitions1 !== "") {
vertexCollections.forEach( from = _.pluck($('#s2id_fromCollections1').select2("data"), "text");
function(vc, index) { to = _.pluck($('#s2id_toCollections1').select2("data"), "text");
console.log("vertexCollections " + index); }
console.log(vertexCollections[index]); console.log("newEdgeDefinitions1");
} console.log(newEdgeDefinitions1);
); console.log("from");
console.log(from);
console.log("to");
console.log(to);
if (!name) { if (!name) {
arangoHelper.arangoNotification( arangoHelper.arangoNotification(
"A name for the graph has to be provided." "A name for the graph has to be provided."

View File

@ -1701,6 +1701,7 @@ var _create = function (graphName, edgeDefinitions, orphanCollections) {
); );
gdb.save({ gdb.save({
'orphanCollections' : orphanCollections.sort,
'edgeDefinitions' : edgeDefinitions, 'edgeDefinitions' : edgeDefinitions,
'_key' : graphName '_key' : graphName
}); });