aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/GeofenceDialogController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-07-03 20:03:23 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-07-03 20:03:23 +1200
commitebb43a1d910595462b384e3d1bd6375672da5b84 (patch)
treec0cb06b37f1c9d3fb2260e7bd259a9141a4118f9 /web/app/view/GeofenceDialogController.js
parentdbb2e88db2c5af22172ea3642b27899b8164b40a (diff)
downloadtrackermap-server-ebb43a1d910595462b384e3d1bd6375672da5b84.tar.gz
trackermap-server-ebb43a1d910595462b384e3d1bd6375672da5b84.tar.bz2
trackermap-server-ebb43a1d910595462b384e3d1bd6375672da5b84.zip
Implement geofence saving
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,