From 7dd817417f852eec8b50e9680bb75c2d90cdf30e Mon Sep 17 00:00:00 2001 From: hkernbach Date: Fri, 27 Nov 2015 14:57:51 +0100 Subject: [PATCH] jslint --- .../frontend/js/views/graphManagementView.js | 6 +++- .../arangodb/graph-examples/example-graph.js | 29 ++++++++++++++----- 2 files changed, 26 insertions(+), 9 deletions(-) diff --git a/js/apps/system/_admin/aardvark/APP/frontend/js/views/graphManagementView.js b/js/apps/system/_admin/aardvark/APP/frontend/js/views/graphManagementView.js index bdf555484f..db279de205 100644 --- a/js/apps/system/_admin/aardvark/APP/frontend/js/views/graphManagementView.js +++ b/js/apps/system/_admin/aardvark/APP/frontend/js/views/graphManagementView.js @@ -680,7 +680,11 @@ } $('#graphTab').hide(); - $('#modal-dialog .modal-delete-confirmation').append('
'); + $('#modal-dialog .modal-delete-confirmation').append( + '
' + + '' + + '
' + ); } }, diff --git a/js/common/modules/org/arangodb/graph-examples/example-graph.js b/js/common/modules/org/arangodb/graph-examples/example-graph.js index 06d76299f2..a4e77d6217 100644 --- a/js/common/modules/org/arangodb/graph-examples/example-graph.js +++ b/js/common/modules/org/arangodb/graph-examples/example-graph.js @@ -978,13 +978,27 @@ var createMoviesGraph = function (prefixed) { var knownGraphs = { - "knows_graph" : {create: createTraversalExample, dependencies: ["knows", "persons"]}, - "routeplanner" : {create: createRoutePlannerGraph, dependencies: ["frenchHighway", "frenchCity", "germanCity", "germanHighway", "internationalHighway"]}, - "social" : {create: createSocialGraph, dependencies: ["relation", "female", "male"]}, - "worldCountry" : {create: createWorldCountryGraph, dependencies: ["worldVertices", "worldEdges"]}, - "worldCountryUnManaged" : {create: createWorldCountryGraphUnManaged, dependencies: ["worldVertices", "worldEdges"]}, - "traversalGraph" : {create: createTraversalGraph, dependencies: ["edges", "circles"]}, - "movies" : {create: createMoviesGraph, dependencies: ["Person", "Movie", "ACTED_IN" ,"DIRECTED", "PRODUCED", "WROTE", "REVIEWED", "FOLLOWS"]} + "knows_graph" : {create: createTraversalExample, dependencies: [ + "knows", "persons" + ]}, + "routeplanner" : {create: createRoutePlannerGraph, dependencies: [ + "frenchHighway", "frenchCity", "germanCity", "germanHighway", "internationalHighway" + ]}, + "social" : {create: createSocialGraph, dependencies: [ + "relation", "female", "male" + ]}, + "worldCountry" : {create: createWorldCountryGraph, dependencies: [ + "worldVertices", "worldEdges" + ]}, + "worldCountryUnManaged" : {create: createWorldCountryGraphUnManaged, dependencies: [ + "worldVertices", "worldEdges" + ]}, + "traversalGraph" : {create: createTraversalGraph, dependencies: [ + "edges", "circles" + ]}, + "movies" : {create: createMoviesGraph, dependencies: [ + "Person", "Movie", "ACTED_IN" ,"DIRECTED", "PRODUCED", "WROTE", "REVIEWED", "FOLLOWS" + ]} }; var unManagedGraphs = { @@ -1042,7 +1056,6 @@ var loadGraph = function (name, prefixed) { err.errorMessage = "the collection: " + JSON.stringify(dependencies) + " already exists. Please clean up and try again."; } throw err; - return false; } }