aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/StateController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-18 19:12:49 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-18 19:12:49 +1300
commit30f97a3af0dab8724f6c4c3c32da25f1adbf4221 (patch)
tree93e37644f5d758cf17025bd1a3be85c2561e21b0 /web/app/view/StateController.js
parent94bbf51bdf1a303dfcb9a04f1629e9cee1567fce (diff)
downloadtrackermap-server-30f97a3af0dab8724f6c4c3c32da25f1adbf4221.tar.gz
trackermap-server-30f97a3af0dab8724f6c4c3c32da25f1adbf4221.tar.bz2
trackermap-server-30f97a3af0dab8724f6c4c3c32da25f1adbf4221.zip
Clean up map and state code
Diffstat (limited to 'web/app/view/StateController.js')
-rw-r--r--web/app/view/StateController.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/web/app/view/StateController.js b/web/app/view/StateController.js
index a6adfc908..29f6a7c6d 100644
--- a/web/app/view/StateController.js
+++ b/web/app/view/StateController.js
@@ -22,7 +22,8 @@ Ext.define('Traccar.view.StateController', {
listen: {
controller: {
'*': {
- selectDevice: 'selectDevice'
+ selectDevice: 'selectDevice',
+ selectReport: 'selectReport'
}
}
}
@@ -123,6 +124,10 @@ Ext.define('Traccar.view.StateController', {
}
},
+ selectReport: function (position) {
+ console.log(position);
+ },
+
add: function (store, data) {
if (this.deviceId === data[0].get('deviceId')) {
this.updatePosition(data[0]);