diff options
| author | Alon Levy <alon@pobox.com> | 2015-08-08 15:09:27 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-08-08 15:09:27 +0300 |
| commit | f729cf729f46998e86da025f8829a272a5330b0c (patch) | |
| tree | 9879389f2db55208bc97455ab03275f241535340 /src | |
| parent | 79b13bae263ad08dd35ed63b0c3d0b7f2932fa5d (diff) | |
fixing problems with position recording - broke temporary and broke still <enter> breaks (need to reload to see the new node - so it is missing an attribute?
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/view/graph_view.js | 2 | ||||
| -rw-r--r-- | src/client/view/search.js | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index c2271948..9f66757c 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -234,7 +234,7 @@ function GraphView(spec) { } } } - if (have_position === 0) { + if (!temporary && have_position === 0) { // avoid recursion due to layout triggering sending of new positions to db, resulting in a new diff update return; } diff --git a/src/client/view/search.js b/src/client/view/search.js index 41075c28..9ef99fc7 100644 --- a/src/client/view/search.js +++ b/src/client/view/search.js @@ -80,6 +80,7 @@ function init() { } else { selection.clear(); } + rz_core.main_graph_view.zen_mode__set(true); rz_core.update_view__graph(false); }; |
