aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/MapPickerDialogController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-03-24 17:21:16 +0500
committerAbyss777 <abyss@fox5.ru>2017-03-24 17:56:01 +0500
commit37c1c6a786e4ca385e373c645654663e38701e7c (patch)
tree2732ef1dcd8d1771888af5d725f103593beaf691 /web/app/view/MapPickerDialogController.js
parent49eebb3a0d11e3c4d6f6951312e44bf65ce02906 (diff)
downloadtrackermap-web-37c1c6a786e4ca385e373c645654663e38701e7c.tar.gz
trackermap-web-37c1c6a786e4ca385e373c645654663e38701e7c.tar.bz2
trackermap-web-37c1c6a786e4ca385e373c645654663e38701e7c.zip
Use cookies to save buttons state instead of User/Server attributes
Diffstat (limited to 'web/app/view/MapPickerDialogController.js')
-rw-r--r--web/app/view/MapPickerDialogController.js12
1 files changed, 1 insertions, 11 deletions
diff --git a/web/app/view/MapPickerDialogController.js b/web/app/view/MapPickerDialogController.js
index 6a3b1a51..1dc48ea0 100644
--- a/web/app/view/MapPickerDialogController.js
+++ b/web/app/view/MapPickerDialogController.js
@@ -24,8 +24,7 @@ Ext.define('Traccar.view.MapPickerDialogController', {
listen: {
controller: {
'*': {
- mapstate: 'setMapState',
- togglestate: 'setToggleState'
+ mapstate: 'setMapState'
}
}
}
@@ -35,18 +34,9 @@ Ext.define('Traccar.view.MapPickerDialogController', {
this.fireEvent('mapstaterequest');
},
- getToggleState: function (button) {
- this.fireEvent('togglestaterequest');
- },
-
setMapState: function (lat, lon, zoom) {
this.lookupReference('latitude').setValue(lat);
this.lookupReference('longitude').setValue(lon);
this.lookupReference('zoom').setValue(zoom);
- },
-
- setToggleState: function (state) {
- var record = this.getView().down('form').getRecord();
- record.set('attributes', Ext.merge(record.get('attributes'), state));
}
});