diff options
| author | Alon Levy <alon@pobox.com> | 2014-10-26 11:35:24 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-10-26 11:35:24 +0200 |
| commit | 51445c0818bfd07c0c838ee656db6751d6953c95 (patch) | |
| tree | a65007149575ed3937ec2eb47864f59114dcc086 | |
| parent | 63d78b92f40c19bc6adeb4a016aed2319d1af70a (diff) | |
Fixes #96 URL property in node isn't saved to JSON
| -rw-r--r-- | scripts/rhizicore.js | 9 |
1 files changed, 6 insertions, 3 deletions
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++){ |
