aboutsummaryrefslogtreecommitdiff
path: root/web/app
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-03 21:12:32 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-03 21:12:32 +1300
commit086faa072ddd3e16c28c2ceaceaa90f32a05f7f9 (patch)
treeb34ac007e7729a582348e28136bff652835ec2fe /web/app
parent48f981a2a9755fb0af6497020e499bb0883e0e1f (diff)
downloadtrackermap-server-086faa072ddd3e16c28c2ceaceaa90f32a05f7f9.tar.gz
trackermap-server-086faa072ddd3e16c28c2ceaceaa90f32a05f7f9.tar.bz2
trackermap-server-086faa072ddd3e16c28c2ceaceaa90f32a05f7f9.zip
Ignore or fix JSHint issues
Diffstat (limited to 'web/app')
-rw-r--r--web/app/view/DeviceController.js2
-rw-r--r--web/app/view/LoginController.js4
-rw-r--r--web/app/view/MapController.js1
-rw-r--r--web/app/view/ReportController.js6
-rw-r--r--web/app/view/StateController.js2
5 files changed, 7 insertions, 8 deletions
diff --git a/web/app/view/DeviceController.js b/web/app/view/DeviceController.js
index 748ebabe6..1d0ebc545 100644
--- a/web/app/view/DeviceController.js
+++ b/web/app/view/DeviceController.js
@@ -103,7 +103,7 @@
this.lookupReference('deviceRemoveButton').setDisabled(empty);
this.lookupReference('deviceCommandButton').setDisabled(empty);
if (!empty) {
- this.fireEvent("selectDevice", selected.getLastSelected());
+ this.fireEvent('selectDevice', selected.getLastSelected());
}
},
diff --git a/web/app/view/LoginController.js b/web/app/view/LoginController.js
index 011fddc25..05118b170 100644
--- a/web/app/view/LoginController.js
+++ b/web/app/view/LoginController.js
@@ -72,9 +72,9 @@
if (url.indexOf(paramName + '=') >= 0) {
var prefix = url.substring(0, url.indexOf(paramName));
var suffix = url.substring(url.indexOf(paramName));
- suffix = suffix.substring(suffix.indexOf("=") + 1);
+ suffix = suffix.substring(suffix.indexOf('=') + 1);
suffix = (suffix.indexOf('&') >= 0) ? suffix.substring(suffix.indexOf('&')) : '';
- url = prefix + paramName + "=" + paramValue + suffix;
+ url = prefix + paramName + '=' + paramValue + suffix;
} else {
if (url.indexOf('?') < 0) {
url += '?' + paramName + '=' + paramValue;
diff --git a/web/app/view/MapController.js b/web/app/view/MapController.js
index cca746a20..7ce61e794 100644
--- a/web/app/view/MapController.js
+++ b/web/app/view/MapController.js
@@ -166,7 +166,6 @@
},
reportClear: function () {
- var index;
var vectorSource = this.getView().vectorSource;
if (this.reportRoute !== undefined) {
diff --git a/web/app/view/ReportController.js b/web/app/view/ReportController.js
index 8653784ab..1b226fd55 100644
--- a/web/app/view/ReportController.js
+++ b/web/app/view/ReportController.js
@@ -58,19 +58,19 @@
},
scope: this,
callback: function () {
- this.fireEvent("reportShow");
+ this.fireEvent('reportShow');
}
});
},
onClearClick: function () {
Ext.getStore('Positions').removeAll();
- this.fireEvent("reportClear");
+ this.fireEvent('reportClear');
},
onSelectionChange: function (selected) {
if (selected.getCount() > 0) {
- this.fireEvent("selectReport", selected.getLastSelected());
+ this.fireEvent('selectReport', selected.getLastSelected());
}
},
diff --git a/web/app/view/StateController.js b/web/app/view/StateController.js
index 489662ee7..c0b3c1056 100644
--- a/web/app/view/StateController.js
+++ b/web/app/view/StateController.js
@@ -84,7 +84,7 @@
},
updatePosition: function (position) {
- var attributes, value, unit, store, key;
+ var attributes, store, key;
store = Ext.getStore('Attributes');
store.removeAll();