diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-09 13:26:33 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-09 13:26:33 +1200 |
commit | fe7b8bd58e23e289a041bc7c9a5d6c37f085419a (patch) | |
tree | d28b58d1ea3b4fcd6c715c4f2d2e2e04cb91c208 /web/app/view/GeofenceMap.js | |
parent | 70d22de4205aec294660378f0d854cbc32c7a6b8 (diff) | |
download | trackermap-server-fe7b8bd58e23e289a041bc7c9a5d6c37f085419a.tar.gz trackermap-server-fe7b8bd58e23e289a041bc7c9a5d6c37f085419a.tar.bz2 trackermap-server-fe7b8bd58e23e289a041bc7c9a5d6c37f085419a.zip |
Fix issues in JavaScript code
Diffstat (limited to 'web/app/view/GeofenceMap.js')
-rw-r--r-- | web/app/view/GeofenceMap.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/app/view/GeofenceMap.js b/web/app/view/GeofenceMap.js index 165daf40d..573836bc9 100644 --- a/web/app/view/GeofenceMap.js +++ b/web/app/view/GeofenceMap.js @@ -57,7 +57,7 @@ Ext.define('Traccar.view.GeofenceMap', { map = this.map; this.features = new ol.Collection(); - if (this.area !== "") { + if (this.area !== '') { geometry = Traccar.GeofenceConverter.wktToGeometry(this.mapView, this.area); this.features.push(new ol.Feature(geometry)); if (geometry instanceof ol.geom.Circle) { @@ -90,7 +90,7 @@ Ext.define('Traccar.view.GeofenceMap', { map.addInteraction(new ol.interaction.Modify({ features: this.features, - deleteCondition: function(event) { + deleteCondition: function (event) { return ol.events.condition.shiftKeyOnly(event) && ol.events.condition.singleClick(event); } })); |