From ebb43a1d910595462b384e3d1bd6375672da5b84 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 3 Jul 2016 20:03:23 +1200 Subject: Implement geofence saving --- web/app/view/GeofenceDialogController.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'web/app/view/GeofenceDialogController.js') diff --git a/web/app/view/GeofenceDialogController.js b/web/app/view/GeofenceDialogController.js index d8597457f..c8d518514 100644 --- a/web/app/view/GeofenceDialogController.js +++ b/web/app/view/GeofenceDialogController.js @@ -22,6 +22,20 @@ Ext.define('Traccar.view.GeofenceDialogController', { 'Traccar.view.GeofenceMap' ], + config: { + listen: { + controller: { + '*': { + saveArea: 'saveArea' + } + } + } + }, + + saveArea: function (value) { + this.lookupReference('areaField').setValue(value); + }, + onAreaClick: function (button) { Ext.create('Traccar.view.BaseWindow', { title: Strings.sharedArea, -- cgit v1.2.3