Commit 4608ba28 authored by Sergios Aftsidis's avatar Sergios Aftsidis
Browse files

[RG-n2ntraffic] Fixes in js

This alters the 'script.js' file. Changed the produced title for
node link panel.
parent 6422eeee
...@@ -180,9 +180,9 @@ $(document).ready(function () { ...@@ -180,9 +180,9 @@ $(document).ready(function () {
if (!err && data.links.length) { if (!err && data.links.length) {
var text; var text;
if (data.graph !== false) { if (data.graph !== false) {
text = '<h4>' + data.links[0].from + ' to ' + data.links[0].to + '</h4>' + '<img src="' + data.graph + '"/>' text = '<h4>' + data.links[0].from_descr +'</h4>' + '<img src="' + data.graph + '"/>'
} else { } else {
text = '<h4>' + data.links[0].from + ' to ' + data.links[0].to + '</h4>' + '<p>No datasources found..</p>' text = '<h4>' + data.links[0].from_descr +'</h4>' + '<p>No datasources found..</p>'
} }
d3.select(that).attr('data-load', text); d3.select(that).attr('data-load', text);
} else { } else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment