diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-11-19 03:27:41 +0200 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2014-11-19 03:27:41 +0200 |
| commit | af680614caa6a937cd4abe38c13719da9f44ac2e (patch) | |
| tree | e9045a2e95f03f3d26f78f7b73afaa3b44b9fe09 /src | |
| parent | 5f16cb23876c44e6c9f6d0d6257785bd2a2d2f9b (diff) | |
replace _addNodeNoHistory() call with addNode
Diffstat (limited to 'src')
| -rw-r--r-- | src/model/graph.js | 4 | ||||
| -rw-r--r-- | src/rz_core.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/model/graph.js b/src/model/graph.js index 06c36adf..2ee7622d 100644 --- a/src/model/graph.js +++ b/src/model/graph.js @@ -584,7 +584,7 @@ function Graph() { } for(i = 0; i < data["nodes"].length; i++){ node = data.nodes[i]; - this._addNodeNoHistory({id:node.id, name:node.name ? node.name : node.id, + this.__addNode({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), @@ -592,7 +592,7 @@ function Graph() { url:node.url, x: node.x, y: node.y, - }); + }, false); textanalysis.autoSuggestAddName(node.name.toLowerCase()); } for(i = 0; i < data["links"].length; i++){ diff --git a/src/rz_core.js b/src/rz_core.js index 959227c5..911fe5b9 100644 --- a/src/rz_core.js +++ b/src/rz_core.js @@ -141,7 +141,7 @@ function canvas_handler_dblclick(){ var n = model_core.create_node__set_random_id(); n.name = ''; // will be set by user - graph._addNodeNoHistory(n); // FIXME: clean once node creation functions consolidate + graph.addNode(n); graph.update(); var n_ve = locate_visual_element(n); // locate visual element |
