summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-12-23 16:47:59 +0200
committerAlon Levy <alon@pobox.com>2014-12-23 16:47:59 +0200
commit8d0cf2e43437696ad407c544cdc5a1723130a936 (patch)
tree51f350ac42c7c568f92457d92282b08e31b1eed4 /src
parent047ca46b3c2ac95bb34227106b40b8b1d1a0bee0 (diff)
client: remove annoying confirmation after clicking delete (should be inline if at all, not a confirm dialog)
Diffstat (limited to 'src')
-rw-r--r--src/client/rz_core.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/rz_core.js b/src/client/rz_core.js
index 0ab227d8..e3bd2b59 100644
--- a/src/client/rz_core.js
+++ b/src/client/rz_core.js
@@ -727,11 +727,9 @@ function showNodeInfo(d, i) {
});
view.node_info.on_delete(function() {
- if (confirm('This node and all its connections will be deleted, are you sure?')) {
- graph.removeNode(d.id);
+ graph.removeNode(d.id); // async
update_view__graph(false);
view.node_info.hide();
- }
});
view.node_info.show(d);