aboutsummaryrefslogtreecommitdiff
path: root/web/app/controller
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-12-20 15:35:39 +0500
committerAbyss777 <abyss@fox5.ru>2016-12-20 15:35:39 +0500
commit13cdf25f6afbd8f77f851bc002021ddc08727eb1 (patch)
tree208c04edf53a623b9fefbcc1933649e12a153dd3 /web/app/controller
parent0a465cee9200e0ae297aa9fe7eb9ac78be4636ad (diff)
downloadtrackermap-web-13cdf25f6afbd8f77f851bc002021ddc08727eb1.tar.gz
trackermap-web-13cdf25f6afbd8f77f851bc002021ddc08727eb1.tar.bz2
trackermap-web-13cdf25f6afbd8f77f851bc002021ddc08727eb1.zip
- Migrate to openlayers 3.20.0
- use style.setImage() - style fixes
Diffstat (limited to 'web/app/controller')
-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 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);