aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/GeofenceDialogController.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/GeofenceDialogController.js')
-rw-r--r--web/app/view/GeofenceDialogController.js14
1 files changed, 14 insertions, 0 deletions
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,