diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-08 14:24:10 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-08 14:24:10 +1300 |
commit | 30f1a770f867de05a89ee6073dc002137d5e4512 (patch) | |
tree | e43a6d66f1124a161b4398f92be75b45a31839b5 /web/app/view | |
parent | 2c71e521f5e2f60627d0c3df4b6649751dea1035 (diff) | |
download | trackermap-server-30f1a770f867de05a89ee6073dc002137d5e4512.tar.gz trackermap-server-30f1a770f867de05a89ee6073dc002137d5e4512.tar.bz2 trackermap-server-30f1a770f867de05a89ee6073dc002137d5e4512.zip |
Fix JavaScript jshint issues
Diffstat (limited to 'web/app/view')
-rw-r--r-- | web/app/view/Map.js | 2 | ||||
-rw-r--r-- | web/app/view/MapController.js | 4 | ||||
-rw-r--r-- | web/app/view/UserDevicesController.js | 12 |
3 files changed, 5 insertions, 13 deletions
diff --git a/web/app/view/Map.js b/web/app/view/Map.js index b6c8cf815..4358b64ac 100644 --- a/web/app/view/Map.js +++ b/web/app/view/Map.js @@ -96,7 +96,7 @@ Ext.define('Traccar.view.Map', { view: this.mapView }); - this.map.on("click", function(e) { + this.map.on('click', function(e) { this.map.forEachFeatureAtPixel(e.pixel, function (feature, layer) { this.fireEvent('selectFeature', feature); }, this); diff --git a/web/app/view/MapController.js b/web/app/view/MapController.js index 263587877..aa27aff74 100644 --- a/web/app/view/MapController.js +++ b/web/app/view/MapController.js @@ -50,7 +50,7 @@ Ext.define('Traccar.view.MapController', { }, updateLatest: function (store, data) { - var i, position, geometry, device, deviceId, name, marker, style; + var i, position, geometry, device, deviceId, marker, style; if (!Ext.isArray(data)) { data = [data]; @@ -84,7 +84,7 @@ Ext.define('Traccar.view.MapController', { }, loadReport: function (store, data) { - var i, position, point, points, geometry, deviceId, name, marker, style; + var i, position, point, geometry, marker, style; this.clearReport(store); diff --git a/web/app/view/UserDevicesController.js b/web/app/view/UserDevicesController.js index a50ab8c80..aeb99c21c 100644 --- a/web/app/view/UserDevicesController.js +++ b/web/app/view/UserDevicesController.js @@ -52,11 +52,7 @@ Ext.define('Traccar.view.UserDevicesController', { userId: this.userId, deviceId: record.getData().id }, - callback: Traccar.app.getErrorHandler(this, function (options, success, response) { - if (!success) { - // TODO deselect again - } - }) + callback: Traccar.app.getErrorHandler() }); }, @@ -68,11 +64,7 @@ Ext.define('Traccar.view.UserDevicesController', { userId: this.userId, deviceId: record.getData().id }, - callback: Traccar.app.getErrorHandler(this, function (options, success, response) { - if (!success) { - // TODO select again - } - }) + callback: Traccar.app.getErrorHandler() }); } }); |