diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-18 15:02:04 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-18 15:02:04 +1200 |
commit | 601ffd5cc7e1d6fa66938915264cd2c1d1dbf8bc (patch) | |
tree | 8553cfa022feb2f8418157e5b3bba9b3a27964a4 /web/app/view | |
parent | 04d300ca65f448301047c6f97bd88da13026b2bc (diff) | |
download | traccar-server-601ffd5cc7e1d6fa66938915264cd2c1d1dbf8bc.tar.gz traccar-server-601ffd5cc7e1d6fa66938915264cd2c1d1dbf8bc.tar.bz2 traccar-server-601ffd5cc7e1d6fa66938915264cd2c1d1dbf8bc.zip |
Force initial async update
Diffstat (limited to 'web/app/view')
-rw-r--r-- | web/app/view/map/MapController.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/web/app/view/map/MapController.js b/web/app/view/map/MapController.js index a0f167ec3..9e009218e 100644 --- a/web/app/view/map/MapController.js +++ b/web/app/view/map/MapController.js @@ -33,13 +33,16 @@ Ext.define('Traccar.view.map.MapController', { init: function() { this.liveData = {}; - this.update(); + this.update(true); }, - update: function() { + update: function(first) { Ext.Ajax.request({ scope: this, url: '/api/async', + params: { + first: first + }, success: function(response) { var data = Ext.decode(response.responseText).data; @@ -63,7 +66,7 @@ Ext.define('Traccar.view.map.MapController', { } } - this.update(); + this.update(false); }, failure: function() { // TODO: error |