GUI -- Added user feedback "flash" message function.
- flash hover mode when H key pressed.
- additional cleanup.
Change-Id: I14dd47c41842c3f6cb68d2c9fbe3ee96ad23ae86
diff --git a/web/gui/src/main/webapp/onos2.js b/web/gui/src/main/webapp/onos2.js
index 9fcd7f7..384c64c 100644
--- a/web/gui/src/main/webapp/onos2.js
+++ b/web/gui/src/main/webapp/onos2.js
@@ -588,6 +588,7 @@
setKeys: this.setKeys,
dataLoadError: this.dataLoadError,
alert: this.alert,
+ flash: this.flash,
theme: this.theme
}
},
@@ -697,6 +698,10 @@
doAlert(msg);
},
+ flash: function (msg) {
+ libApi.feedback.flash(msg);
+ },
+
dataLoadError: function (err, url) {
var msg = 'Data Load Error\n\n' +
err.status + ' -- ' + err.statusText + '\n\n' +