summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/rz_core.js2
-rw-r--r--scripts/view/edge_info.js3
2 files changed, 3 insertions, 2 deletions
diff --git a/scripts/rz_core.js b/scripts/rz_core.js
index e1da101c..6f4a3aeb 100644
--- a/scripts/rz_core.js
+++ b/scripts/rz_core.js
@@ -174,7 +174,7 @@ function update(no_relayout) {
graph.update(true);
view.edge_info.hide();
});
- view.edge_info.show();
+ view.edge_info.show(d);
highlight(source);
highlight(target);
source.state = 'chosen';
diff --git a/scripts/view/edge_info.js b/scripts/view/edge_info.js
index a3d41a7b..9652839c 100644
--- a/scripts/view/edge_info.js
+++ b/scripts/view/edge_info.js
@@ -11,9 +11,10 @@ delete_button.on('click', function() {
}
});
-function show()
+function show(link)
{
internal.edit_tab.show('edge');
+ internal.edit_tab.get('edge', '#edgetitle').html(link.name);
}
function hide()