diff options
| author | Alon Levy <alon@pobox.com> | 2015-01-11 15:20:00 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-01-11 16:05:13 +0200 |
| commit | cd22d403c7840c4ba227d24de75a5f00de4314bf (patch) | |
| tree | aa11d7a4ffba653f8b5d93211a6e6e6159a2bf56 /src/client/rz_core.js | |
| parent | 162e109be5002fb29babccaa81a51337cb7998f4 (diff) | |
client: cleanup selection
1. seperate root_nodes/selected_nodes
2. move graph update to rz_core.js
Fixes #213
Diffstat (limited to 'src/client/rz_core.js')
| -rw-r--r-- | src/client/rz_core.js | 7 |
1 files changed, 5 insertions, 2 deletions
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(); |
