diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-18 19:12:49 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-18 19:12:49 +1300 |
commit | 30f97a3af0dab8724f6c4c3c32da25f1adbf4221 (patch) | |
tree | 93e37644f5d758cf17025bd1a3be85c2561e21b0 /web/app/view/StateController.js | |
parent | 94bbf51bdf1a303dfcb9a04f1629e9cee1567fce (diff) | |
download | trackermap-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.js | 7 |
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]); |