[TASK] Add connection type to tooltip
This commit is contained in:
parent
dabfbfba83
commit
844bf99641
@ -114,7 +114,9 @@ define(['leaflet', 'rbush', 'helper', 'moment'],
|
|||||||
line.setStyle(opts);
|
line.setStyle(opts);
|
||||||
};
|
};
|
||||||
|
|
||||||
line.bindTooltip(d.source.hostname + ' – ' + d.target.hostname + '<br><strong>' + helper.showDistance(d) + ' / ' + helper.showTq(d.source_tq) + ' - ' + helper.showTq(d.target_tq) + '</strong>');
|
line.bindTooltip(d.source.hostname + ' – ' + d.target.hostname +
|
||||||
|
'<br><strong>' + helper.showDistance(d) + ' / ' + helper.showTq(d.source_tq) + ' - ' + helper.showTq(d.target_tq) + '<br>' + d.type + '</strong>');
|
||||||
|
|
||||||
line.on('click', function () {
|
line.on('click', function () {
|
||||||
router.fullUrl({ link: d.id });
|
router.fullUrl({ link: d.id });
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user