aboutsummaryrefslogtreecommitdiff
path: root/web/app/view
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view')
-rw-r--r--web/app/view/Map.js2
-rw-r--r--web/app/view/MapController.js4
-rw-r--r--web/app/view/UserDevicesController.js12
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()
});
}
});