summaryrefslogtreecommitdiff
path: root/scripts/rz_core.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-11-11 17:11:47 +0200
committerAlon Levy <alon@pobox.com>2014-11-11 19:48:25 +0200
commit9968784c978199b10bd7f6fcc465ba5fc5841e0e (patch)
treea0506ee56715a4441856eba9e8d14154457f746a /scripts/rz_core.js
parent4ffd67ad93ba1b92afad1ddc72f6b383b1bfa74a (diff)
Add edge_info tab; implements edge deletion
Diffstat (limited to 'scripts/rz_core.js')
-rw-r--r--scripts/rz_core.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/rz_core.js b/scripts/rz_core.js
index eb3cc341..2480599e 100644
--- a/scripts/rz_core.js
+++ b/scripts/rz_core.js
@@ -153,7 +153,11 @@ function update(no_relayout) {
})
.attr("marker-end", "url(#end)")
.on("click", function(d, i) {
- //$('#textanalyser').val("node("+d.source.id+") -> "+d.name+" -> node("+d.target.id+")");
+ view.edge_info.on_delete(function () {
+ graph.removeLink(d);
+ graph.update(true);
+ });
+ view.edge_info.show();
});;
link.style("stroke-dasharray", function(d,i){
if(d.name && d.name.replace(/ /g,"")=="and" && d.state==="temp")