GUI -- TopoView - Changed link "enhancement" to be addition of glow filter via 'enhanced' CSS class.
- removed unnecessary properties of link data object (delegate to source and target for endpoints).
- removed feature envy for existing links.
Change-Id: I9f96792d5665665a3467e419d80803e1b0db389b
diff --git a/web/gui/src/main/webapp/app/view/topo/topoLink.js b/web/gui/src/main/webapp/app/view/topo/topoLink.js
index 6dd4338..2b46f45 100644
--- a/web/gui/src/main/webapp/app/view/topo/topoLink.js
+++ b/web/gui/src/main/webapp/app/view/topo/topoLink.js
@@ -189,12 +189,12 @@
}
function unenhance(d) {
- d.el.style('stroke', '#666');
+ d.el.classed('enhanced', false);
$log.debug('UN-enhancing link: ', d.key);
}
function enhance(d) {
- d.el.style('stroke', 'gold');
+ d.el.classed('enhanced', true);
$log.debug('enhancing link: ', d.key);
}