aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-10-31 13:20:19 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-10-31 13:20:19 -0700
commitf5960bacc081068532fa7a3c899a0b3349b0c2f8 (patch)
tree192dbbe29e4e52edca938fcb70085d252ed21bba
parent5395dc657dc9f9d6d53b09b2bf69d6492d39cf1b (diff)
downloadtrackermap-web-f5960bacc081068532fa7a3c899a0b3349b0c2f8.tar.gz
trackermap-web-f5960bacc081068532fa7a3c899a0b3349b0c2f8.tar.bz2
trackermap-web-f5960bacc081068532fa7a3c899a0b3349b0c2f8.zip
Move variables
-rw-r--r--web/app/view/map/GeofenceMapController.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/app/view/map/GeofenceMapController.js b/web/app/view/map/GeofenceMapController.js
index 237858ad..31ab586c 100644
--- a/web/app/view/map/GeofenceMapController.js
+++ b/web/app/view/map/GeofenceMapController.js
@@ -34,10 +34,11 @@ Ext.define('Traccar.view.map.GeofenceMapController', {
},
onFileChange: function (fileField) {
- var reader, parser, xml, segment, projection, points = [], view = this.getView();
+ var reader, view = this.getView();
if (fileField.fileInputEl.dom.files.length > 0) {
reader = new FileReader();
reader.onload = function () {
+ var parser, xml, segment, projection, points = [];
parser = new DOMParser();
xml = parser.parseFromString(reader.result, 'text/xml');
segment = xml.getElementsByTagName('trkseg')[0];