GUI -- TopoView - Minor formatting changes.
Change-Id: Ibd02437fb6f6c3d75546d29ffdb15fde801f0292
diff --git a/web/gui/src/main/webapp/app/view/topo/topo.js b/web/gui/src/main/webapp/app/view/topo/topo.js
index 24fb013..c413347 100644
--- a/web/gui/src/main/webapp/app/view/topo/topo.js
+++ b/web/gui/src/main/webapp/app/view/topo/topo.js
@@ -216,7 +216,6 @@
// --- Controller Definition -----------------------------------------
angular.module('ovTopo', moduleDependencies)
-
.controller('OvTopoCtrl', [
'$scope', '$log', '$location', '$timeout',
'FnService', 'MastService', 'KeyService', 'ZoomService',
diff --git a/web/gui/src/main/webapp/app/view/topo/topoEvent.js b/web/gui/src/main/webapp/app/view/topo/topoEvent.js
index f04c654..3a68f92 100644
--- a/web/gui/src/main/webapp/app/view/topo/topoEvent.js
+++ b/web/gui/src/main/webapp/app/view/topo/topoEvent.js
@@ -19,7 +19,7 @@
Defines the conduit between the client and the server:
- provides a clean API for sending events to the server
- - dispatches incoming events from the server to the appropriate submodule
+ - dispatches incoming events from the server to the appropriate sub-module
*/
@@ -60,34 +60,34 @@
var nilApi = {},
dispatcher = {
- handleEvent: function (ev) {
- var eid = ev.event,
- api = evApis[eid] || nilApi,
- eh = api[eid];
+ handleEvent: function (ev) {
+ var eid = ev.event,
+ api = evApis[eid] || nilApi,
+ eh = api[eid];
- if (eh) {
- $log.debug(' << *Rx* ', eid, ev.payload);
- eh(ev.payload);
- } else {
- $log.warn('Unknown event (ignored):', ev);
- }
- },
+ if (eh) {
+ $log.debug(' << *Rx* ', eid, ev.payload);
+ eh(ev.payload);
+ } else {
+ $log.warn('Unknown event (ignored):', ev);
+ }
+ },
- sendEvent: function (evType, payload) {
- if (wsock) {
- $log.debug(' *Tx* >> ', evType, payload);
- wes.sendEvent(wsock, evType, payload);
- } else {
- $log.warn('sendEvent: no websocket open:', evType, payload);
+ sendEvent: function (evType, payload) {
+ if (wsock) {
+ $log.debug(' *Tx* >> ', evType, payload);
+ wes.sendEvent(wsock, evType, payload);
+ } else {
+ $log.warn('sendEvent: no websocket open:', evType, payload);
+ }
}
- }
- };
+ };
// === Web Socket functions ===
function onWsOpen() {
$log.debug('web socket opened...');
- // kick off request for periodic summary data...
+ // start by requesting periodic summary data...
dispatcher.sendEvent('requestSummary');
}
diff --git a/web/gui/src/main/webapp/app/view/topo/topoModel.js b/web/gui/src/main/webapp/app/view/topo/topoModel.js
index b1f02ae..a2fc40b 100644
--- a/web/gui/src/main/webapp/app/view/topo/topoModel.js
+++ b/web/gui/src/main/webapp/app/view/topo/topoModel.js
@@ -355,7 +355,7 @@
// Module definition
angular.module('ovTopo')
- .factory('TopoModelService',
+ .factory('TopoModelService',
['$log', 'FnService', 'RandomService',
function (_$log_, _fs_, _rnd_) {
diff --git a/web/gui/src/main/webapp/app/view/topo/topoSelect.js b/web/gui/src/main/webapp/app/view/topo/topoSelect.js
index 0513477..2f1dd15 100644
--- a/web/gui/src/main/webapp/app/view/topo/topoSelect.js
+++ b/web/gui/src/main/webapp/app/view/topo/topoSelect.js
@@ -244,7 +244,7 @@
// === MODULE DEFINITION ===
angular.module('ovTopo')
- .factory('TopoSelectService',
+ .factory('TopoSelectService',
['$log', 'FnService', 'FlashService', 'TopoPanelService',
'TopoTrafficService',
diff --git a/web/gui/src/main/webapp/app/view/topo/topoTraffic.js b/web/gui/src/main/webapp/app/view/topo/topoTraffic.js
index b1563ab..30adc23 100644
--- a/web/gui/src/main/webapp/app/view/topo/topoTraffic.js
+++ b/web/gui/src/main/webapp/app/view/topo/topoTraffic.js
@@ -199,7 +199,7 @@
// === MODULE DEFINITION ===
angular.module('ovTopo')
- .factory('TopoTrafficService',
+ .factory('TopoTrafficService',
['$log', 'FnService', 'FlashService',
function (_$log_, _fs_, _flash_) {