Revert "GUI: Added ESLint to gulp tasks GUI: Linted files Fixed an error in the build script"
This reverts commit 46c5f1087d76d93497a1e8e5593564991ccb6682.
Change-Id: I1464fdd1df075e93f885e3c1fbd02f0cc563fd4f
diff --git a/web/gui/src/main/webapp/app/view/settings/settings.js b/web/gui/src/main/webapp/app/view/settings/settings.js
index bdc0e1f..ce3caa1 100644
--- a/web/gui/src/main/webapp/app/view/settings/settings.js
+++ b/web/gui/src/main/webapp/app/view/settings/settings.js
@@ -22,7 +22,7 @@
'use strict';
// injected refs
- var $log, $scope, fs, ks, ps, is;
+ var $log, $scope, wss, fs, ks, ps, is;
// internal state
var detailsPanel,
@@ -39,19 +39,19 @@
propOrder = ['fqComponent', 'prop', 'type', 'value', 'defValue', 'desc'],
friendlyProps = [
'Component', 'Property', 'Type', 'Value', 'Default Value',
- 'Description',
+ 'Description'
];
function createDetailsPanel() {
detailsPanel = ps.createPanel(pName, {
width: wSize.width,
margin: 0,
- hideMargin: 0,
+ hideMargin: 0
});
detailsPanel.el().style({
position: 'absolute',
- top: pStartY + 'px',
+ top: pStartY + 'px'
});
detailsPanel.hide();
@@ -87,7 +87,7 @@
div = top.append('div').classed('top-content', true);
function ndiv(cls, addTable) {
- var d = div.append('div').classed(cls, true);
+ var d = div.append('div').classed(cls, true);
if (addTable) {
d.append('table');
}
@@ -129,12 +129,13 @@
angular.module('ovSettings', [])
.controller('OvSettingsCtrl',
['$log', '$scope',
- 'FnService', 'KeyService', 'PanelService',
+ 'WebSocketService', 'FnService', 'KeyService', 'PanelService',
'IconService', 'TableBuilderService',
- function (_$log_, _$scope_, _fs_, _ks_, _ps_, _is_, tbs) {
+ function (_$log_, _$scope_, _wss_, _fs_, _ks_, _ps_, _is_, tbs) {
$log = _$log_;
$scope = _$scope_;
+ wss = _wss_;
fs = _fs_;
ks = _ks_;
ps = _ps_;
@@ -155,16 +156,16 @@
tbs.buildTable({
scope: $scope,
tag: 'setting',
- selCb: selCb,
+ selCb: selCb
});
ks.keyBindings({
esc: [$scope.selectCallback, 'Deselect property'],
- _helpFormat: ['esc'],
+ _helpFormat: ['esc']
});
ks.gestureNotes([
['click row', 'Select / deselect settings property'],
- ['scroll down', 'See more settings'],
+ ['scroll down', 'See more settings']
]);
$scope.$on('$destroy', function () {
@@ -203,11 +204,11 @@
// create key bindings to handle panel
ks.keyBindings({
esc: [closePanel, 'Close the details panel'],
- _helpFormat: ['esc'],
+ _helpFormat: ['esc']
});
ks.gestureNotes([
['click', 'Select a row to show property details'],
- ['scroll down', 'See more properties'],
+ ['scroll down', 'See more properties']
]);
// if the window size changes
@@ -215,7 +216,7 @@
function () {
return {
h: $window.innerHeight,
- w: $window.innerWidth,
+ w: $window.innerWidth
};
}, function () {
if (panelData) {