aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/state
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-19 22:11:45 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-19 22:11:45 +1200
commit72e80e7a45ffdc149bd440c0f864f34492e8e994 (patch)
treeeaa9855e4657e8d2c3b69fcb78fb551b6420d360 /web/app/view/state
parent2737d1c994a4d8e45946a701cb93ae57dd5fd802 (diff)
downloadtrackermap-server-72e80e7a45ffdc149bd440c0f864f34492e8e994.tar.gz
trackermap-server-72e80e7a45ffdc149bd440c0f864f34492e8e994.tar.bz2
trackermap-server-72e80e7a45ffdc149bd440c0f864f34492e8e994.zip
Update live data store
Diffstat (limited to 'web/app/view/state')
-rw-r--r--web/app/view/state/StateController.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/web/app/view/state/StateController.js b/web/app/view/state/StateController.js
index f85381237..be1d713f1 100644
--- a/web/app/view/state/StateController.js
+++ b/web/app/view/state/StateController.js
@@ -29,6 +29,9 @@ Ext.define('Traccar.view.state.StateController', {
},
init: function() {
+ var store = Ext.getStore('LiveData');
+ store.on('add', this.add);
+ store.on('update', this.update);
},
keys: {
@@ -69,6 +72,14 @@ Ext.define('Traccar.view.state.StateController', {
}));
}
}
+ },
+
+ add: function(store, data) {
+ console.log(data);
+ },
+
+ update: function(store, data) {
+ console.log(data);
}
});