aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/map/MapController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-07 18:29:19 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-07 18:29:19 +1200
commit38ea2292b1650c6cdfdce5096ab7258dcd8cb29b (patch)
treed4b902547c9951d1af0caf37c75e1f97aa9c98ce /web/app/view/map/MapController.js
parent4a91ebb7535b8e199b8c9cce041757eeedd350ce (diff)
downloadtraccar-server-38ea2292b1650c6cdfdce5096ab7258dcd8cb29b.tar.gz
traccar-server-38ea2292b1650c6cdfdce5096ab7258dcd8cb29b.tar.bz2
traccar-server-38ea2292b1650c6cdfdce5096ab7258dcd8cb29b.zip
Add row selection events
Diffstat (limited to 'web/app/view/map/MapController.js')
-rw-r--r--web/app/view/map/MapController.js12
1 files changed, 11 insertions, 1 deletions
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
}
});