diff options
author | Rafael Guterres <guterresrafael@gmail.com> | 2016-12-21 22:30:52 -0200 |
---|---|---|
committer | Rafael Guterres <guterresrafael@gmail.com> | 2016-12-21 22:30:52 -0200 |
commit | a23b0c9a452f8a06bc781be5c891932096fe5e65 (patch) | |
tree | f92644c27670e0c7f2f210905ee4b0e21916425c /web/app/controller | |
parent | eb5089cffdf6a3ed5e29fcce1b525b223ce5fe05 (diff) | |
parent | 19d6e1c9cc916ed4c1ed72fe168909770a657db2 (diff) | |
download | trackermap-web-a23b0c9a452f8a06bc781be5c891932096fe5e65.tar.gz trackermap-web-a23b0c9a452f8a06bc781be5c891932096fe5e65.tar.bz2 trackermap-web-a23b0c9a452f8a06bc781be5c891932096fe5e65.zip |
Merge branch 'master' of https://github.com/tananaev/traccar-web
Diffstat (limited to 'web/app/controller')
-rw-r--r-- | web/app/controller/Root.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js index 0cc2a148..404fb7cc 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); |