From f729cf729f46998e86da025f8829a272a5330b0c Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sat, 8 Aug 2015 15:09:27 +0300 Subject: fixing problems with position recording - broke temporary and broke still breaks (need to reload to see the new node - so it is missing an attribute? --- src/client/view/graph_view.js | 2 +- src/client/view/search.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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); }; -- cgit v1.3.1