From 6606ad80f189da772687c6092618b19a46f83394 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 3 Jul 2016 15:30:35 +1200 Subject: Add toolbar to geozone editor --- web/app/view/GeofenceMapController.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'web/app/view/GeofenceMapController.js') diff --git a/web/app/view/GeofenceMapController.js b/web/app/view/GeofenceMapController.js index bc0fbfe1b..d3915fd46 100644 --- a/web/app/view/GeofenceMapController.js +++ b/web/app/view/GeofenceMapController.js @@ -16,5 +16,13 @@ Ext.define('Traccar.view.GeofenceMapController', { extend: 'Ext.app.ViewController', - alias: 'controller.geofenceMap' + alias: 'controller.geofenceMap', + + onSaveClick: function (button) { + button.up('window').close(); + }, + + onCancelClick: function (button) { + button.up('window').close(); + } }); -- cgit v1.2.3