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/topo2NodeModel.js b/web/gui/src/main/webapp/app/view/topo2/topo2NodeModel.js
index c713dc0..94ab15f 100644
--- a/web/gui/src/main/webapp/app/view/topo2/topo2NodeModel.js
+++ b/web/gui/src/main/webapp/app/view/topo2/topo2NodeModel.js
@@ -109,10 +109,14 @@
});
},
mouseoverHandler: function () {
- this.set('hovered', true, { silent: true });
+ this.set('hovered', true);
},
mouseoutHandler: function () {
- this.set('hovered', false, { silent: true });
+ this.set('hovered', false);
+ },
+ fix: function (fixed) {
+ this.set({ fixed: fixed });
+ this.fixed = fixed;
},
icon: function () {
return 'unknown';
@@ -195,7 +199,9 @@
this.get('type'),
{
online: this.get('online'),
- selected: this.get('selected')
+ selected: this.get('selected'),
+ hovered: this.get('hovered'),
+ fixed: this.get('fixed')
}
);
},