From 38ea2292b1650c6cdfdce5096ab7258dcd8cb29b Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 7 Jun 2015 18:29:19 +1200 Subject: Add row selection events --- web/app/view/map/MapController.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'web/app/view/map') diff --git a/web/app/view/map/MapController.js b/web/app/view/map/MapController.js index 2564335c9..e9757daac 100644 --- a/web/app/view/map/MapController.js +++ b/web/app/view/map/MapController.js @@ -23,7 +23,9 @@ Ext.define('Traccar.view.map.MapController', { controller: { '*': { reportShow: 'reportShow', - reportClear: 'reportClear' + reportClear: 'reportClear', + selectDevice: 'selectDevice', + selectReport: 'selectReport' } } } @@ -139,6 +141,14 @@ Ext.define('Traccar.view.map.MapController', { vectorSource.removeFeature(this.reportRoute); vectorSource.removeFeature(this.reportStart); vectorSource.addFeature(this.reportFinish); + }, + + selectDevice: function(device) { + console.log(device); // DELME + }, + + selectReport: function(position) { + console.log(position); // DELME } }); -- cgit v1.2.3