From 35e8f4b4974515733737c5cc1dd439ca47860007 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Wed, 31 May 2017 16:55:00 +0500 Subject: Implement Events panel --- web/app/view/map/MapController.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'web/app/view/map/MapController.js') diff --git a/web/app/view/map/MapController.js b/web/app/view/map/MapController.js index 8a5e81c6..02d4e382 100644 --- a/web/app/view/map/MapController.js +++ b/web/app/view/map/MapController.js @@ -45,12 +45,17 @@ Ext.define('Traccar.view.map.MapController', { init: function () { this.callParent(); this.lookupReference('showReportsButton').setVisible(Traccar.app.isMobile()); + this.lookupReference('showEventsButton').setVisible(Traccar.app.isMobile()); }, showReports: function () { Traccar.app.showReports(true); }, + showEvents: function () { + Traccar.app.showEvents(true); + }, + onFollowClick: function (button, pressed) { if (pressed && this.selectedMarker) { this.getView().getMapView().setCenter(this.selectedMarker.getGeometry().getCoordinates()); -- cgit v1.2.3