diff options
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]); |