aboutsummaryrefslogtreecommitdiff
path: root/web/app/view
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-18 15:02:04 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-18 15:02:04 +1200
commit601ffd5cc7e1d6fa66938915264cd2c1d1dbf8bc (patch)
tree8553cfa022feb2f8418157e5b3bba9b3a27964a4 /web/app/view
parent04d300ca65f448301047c6f97bd88da13026b2bc (diff)
downloadtraccar-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.js9
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