From 51445c0818bfd07c0c838ee656db6751d6953c95 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sun, 26 Oct 2014 11:35:24 +0200 Subject: Fixes #96 URL property in node isn't saved to JSON --- scripts/rhizicore.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js index b53774ea..cdffde64 100644 --- a/scripts/rhizicore.js +++ b/scripts/rhizicore.js @@ -60,7 +60,7 @@ function myGraph(el) { "start": spec.start, "end": spec.end, "status": spec.status, - 'url': undefined + 'url': spec.url, }; nodes.push(new_node); } @@ -527,7 +527,9 @@ function myGraph(el) { type:node.type,state:"perm", start:new Date(node.start), end:new Date(node.end), - status:node.status}); + status:node.status, + url:node.url, + }); textanalysis.autoSuggestAddName(node.id); } for(i = 0; i < data["links"].length; i++){ @@ -552,7 +554,8 @@ function myGraph(el) { "state":"perm", "start":node.start, "end":node.end, - "status": node.status + "status": node.status, + "url": node.url, }); } for(var j=0 ; j < links.length ; j++){ -- cgit v1.3.1