aboutsummaryrefslogtreecommitdiff
path: root/web/app/controller/Root.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-12-21 23:59:16 +1300
committerGitHub <noreply@github.com>2016-12-21 23:59:16 +1300
commit19d6e1c9cc916ed4c1ed72fe168909770a657db2 (patch)
treec802adb481ee39ad5bb31c479bbf6266d2d23099 /web/app/controller/Root.js
parent77e45e57c92cb03688a2494b81dfe66969c6edbd (diff)
parentd3d8e6aed0f880a0077a5aa0b5bd2fcd189a5525 (diff)
downloadetbsa-traccar-web-19d6e1c9cc916ed4c1ed72fe168909770a657db2.tar.gz
etbsa-traccar-web-19d6e1c9cc916ed4c1ed72fe168909770a657db2.tar.bz2
etbsa-traccar-web-19d6e1c9cc916ed4c1ed72fe168909770a657db2.zip
Merge pull request #364 from Abyss777/ol_3.20.0
Migrate to openlayers 3.20.0
Diffstat (limited to 'web/app/controller/Root.js')
-rw-r--r--web/app/controller/Root.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js
index 0cc2a14..404fb7c 100644
--- a/web/app/controller/Root.js
+++ b/web/app/controller/Root.js
@@ -134,7 +134,7 @@ Ext.define('Traccar.controller.Root', {
Ext.Ajax.request({
url: 'api/devices',
- success: function(response) {
+ success: function (response) {
self.updateDevices(Ext.decode(response.responseText));
}
});
@@ -144,12 +144,12 @@ Ext.define('Traccar.controller.Root', {
headers: {
Accept: 'application/json'
},
- success: function(response) {
+ success: function (response) {
self.updatePositions(Ext.decode(response.responseText));
}
});
- setTimeout(function() {
+ setTimeout(function () {
self.asyncUpdate(false);
}, Traccar.Style.reconnectTimeout);
};
@@ -186,7 +186,7 @@ Ext.define('Traccar.controller.Root', {
},
updatePositions: function (array) {
- var i, store, data, entity;
+ var i, store, entity;
store = Ext.getStore('LatestPositions');
for (i = 0; i < array.length; i++) {
entity = store.findRecord('deviceId', array[i].deviceId, 0, false, false, true);