aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-14 13:04:22 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-14 13:04:22 +1300
commit1d6eecf33c0bec1df240896beb421ab040ef4203 (patch)
tree0d8026106a34e5bbd26ac6f76ac337ed6ae0d44c
parent990aa7915e3625c1c36493310e497ae546e7ed62 (diff)
downloadtrackermap-server-1d6eecf33c0bec1df240896beb421ab040ef4203.tar.gz
trackermap-server-1d6eecf33c0bec1df240896beb421ab040ef4203.tar.bz2
trackermap-server-1d6eecf33c0bec1df240896beb421ab040ef4203.zip
Fix JavaScript check style issues
-rw-r--r--web/app/view/Map.js2
-rw-r--r--web/app/view/MapController.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/web/app/view/Map.js b/web/app/view/Map.js
index 3be450cf4..7d81699a3 100644
--- a/web/app/view/Map.js
+++ b/web/app/view/Map.js
@@ -105,7 +105,7 @@ Ext.define('Traccar.view.Map', {
}
this.map.on('pointermove', function (e) {
- var hit = this.forEachFeatureAtPixel(e.pixel, function(feature, layer) {
+ var hit = this.forEachFeatureAtPixel(e.pixel, function (feature, layer) {
return true;
});
if (hit) {
diff --git a/web/app/view/MapController.js b/web/app/view/MapController.js
index 2f4eb5a3c..c153ebd45 100644
--- a/web/app/view/MapController.js
+++ b/web/app/view/MapController.js
@@ -110,7 +110,7 @@ Ext.define('Traccar.view.MapController', {
this.getView().getVectorSource().addFeature(marker);
style = this.getReportMarker();
- style.getImage().setRotation(position.get('course') * Math.PI / 180 );
+ style.getImage().setRotation(position.get('course') * Math.PI / 180);
style.getText().setText(
Ext.Date.format(position.get('fixTime'), Traccar.Style.dateTimeFormat));