GUI -- Update to memento format.
Change-Id: I99c579668b17014d4cdceb9ce5898c4ed49c5be4
diff --git a/web/gui/src/main/webapp/topo2.js b/web/gui/src/main/webapp/topo2.js
index 701f914..86aca72 100644
--- a/web/gui/src/main/webapp/topo2.js
+++ b/web/gui/src/main/webapp/topo2.js
@@ -1154,16 +1154,18 @@
d.fixed = true;
d3.select(self).classed('fixed', true);
if (config.useLiveData) {
- tellServerCoords(d);
+ sendUpdateMeta(d);
}
}
- function tellServerCoords(d) {
+ function sendUpdateMeta(d) {
sendMessage('updateMeta', {
id: d.id,
'class': d.class,
- x: Math.floor(d.x),
- y: Math.floor(d.y)
+ 'memento': {
+ x: Math.floor(d.x),
+ y: Math.floor(d.y)
+ }
});
}