diff options
| author | Alon Levy <alon@pobox.com> | 2014-10-06 18:16:57 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-10-07 08:51:35 +0300 |
| commit | b581ff229b3b645f2cc0525cb88a631e9d9ede2f (patch) | |
| tree | ef5e0fb668735c2c523bba82b8dd07494de21f5e /scripts/rhizicore.js | |
| parent | ce469af4988546ef36661020abd10da93ce0de32 (diff) | |
rhizicore: fix loading json's (drag n drop) without 'name'
Diffstat (limited to 'scripts/rhizicore.js')
| -rw-r--r-- | scripts/rhizicore.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js index f0b7e8d8..37b61330 100644 --- a/scripts/rhizicore.js +++ b/scripts/rhizicore.js @@ -413,7 +413,7 @@ function myGraph(el) { } for(i = 0; i < data["nodes"].length; i++){ node = data.nodes[i]; - graph.addNodeNoHistory({id:node.id, name:node.name, + graph.addNodeNoHistory({id:node.id, name:node.name ? node.name : node.id, type:node.type,state:"perm", start:new Date(node.start), end:new Date(node.end), |
