From cd22d403c7840c4ba227d24de75a5f00de4314bf Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sun, 11 Jan 2015 15:20:00 +0200 Subject: client: cleanup selection 1. seperate root_nodes/selected_nodes 2. move graph update to rz_core.js Fixes #213 --- src/client/rz_core.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/client/rz_core.js') diff --git a/src/client/rz_core.js b/src/client/rz_core.js index 3da4f8c7..626e29da 100644 --- a/src/client/rz_core.js +++ b/src/client/rz_core.js @@ -219,8 +219,11 @@ var initDrawingArea = function () { // we need to deduplicate this event // but there is no coordination, resulting in double updates. selection.selectionChangedBus.onValue( - function() { update_view__graph(false); - }); + function() { + main_graph.setRegularState(); + update_view__graph(false); + } + ); var user_id = $('#user_id'), user = user_id.text(); -- cgit v1.3.1