From 30f97a3af0dab8724f6c4c3c32da25f1adbf4221 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 18 Oct 2015 19:12:49 +1300 Subject: Clean up map and state code --- web/app/view/StateController.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'web/app/view/StateController.js') 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]); -- cgit v1.2.3