Topo2: unpin nodes when a node is hovered and 'U' us pressed
Change-Id: I5f25243073ea7e32354c4777576ad402e6124296
diff --git a/web/gui/src/main/webapp/app/view/topo2/topo2NodePosition.js b/web/gui/src/main/webapp/app/view/topo2/topo2NodePosition.js
index f30401f..2c78a00 100644
--- a/web/gui/src/main/webapp/app/view/topo2/topo2NodePosition.js
+++ b/web/gui/src/main/webapp/app/view/topo2/topo2NodePosition.js
@@ -43,7 +43,7 @@
// else if we have [x,y] cached in meta data, use that...
if (x !== undefined && y !== undefined) {
- node.fixed = true;
+ node.fix(true);
node.px = node.x = x;
node.py = node.y = y;
return;
@@ -100,7 +100,7 @@
}
coord = coordFromLngLat(loc);
- el.fixed = true;
+ el.fix(true);
el.x = el.px = coord[0];
el.y = el.py = coord[1];
@@ -114,7 +114,7 @@
}
coord = coordFromXY(loc);
- el.fixed = true;
+ el.fix(true);
el.x = el.px = coord[0];
el.y = el.py = coord[1];