aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/map
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-21 17:35:25 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-21 17:35:25 +1200
commite36f444cac7abef61dd63a7104f17e6b8de1637c (patch)
tree801f93bca1e18d441a19d43bf1a427ab52c8bfde /web/app/view/map
parent4a4b947cbbff599100e937400384b913b9152909 (diff)
downloadtrackermap-server-e36f444cac7abef61dd63a7104f17e6b8de1637c.tar.gz
trackermap-server-e36f444cac7abef61dd63a7104f17e6b8de1637c.tar.bz2
trackermap-server-e36f444cac7abef61dd63a7104f17e6b8de1637c.zip
Implement parameters ordering
Diffstat (limited to 'web/app/view/map')
-rw-r--r--web/app/view/map/MapController.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/web/app/view/map/MapController.js b/web/app/view/map/MapController.js
index cad8f502a..cbe3ea6c3 100644
--- a/web/app/view/map/MapController.js
+++ b/web/app/view/map/MapController.js
@@ -49,16 +49,11 @@ Ext.define('Traccar.view.map.MapController', {
var i;
for (i = 0; i < data.length; i++) {
- // TODO check if exists and update
var store = Ext.getStore('LiveData');
var found = store.query('deviceId', data[i].deviceId);
if (found.getCount() > 0) {
- var model = found.first();
- model.set(data[i]);
-
- //store.commitChanges(); need for update?
-
+ found.first().set(data[i]);
} else {
store.add(Ext.create('Traccar.model.Position', data[i]));
}