aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/MapPickerDialogController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-03-25 17:27:25 +1300
committerGitHub <noreply@github.com>2017-03-25 17:27:25 +1300
commitd68f47ef27eb6afc28444f2e7e0a8310ae4f25b5 (patch)
tree40ac870d42f129cd38bd43410cc7080cfdc3711c /web/app/view/MapPickerDialogController.js
parent49eebb3a0d11e3c4d6f6951312e44bf65ce02906 (diff)
parentd1a21515aec2d8b6c0ecbc4ca10c54f594e4820e (diff)
downloadetbsa-traccar-web-d68f47ef27eb6afc28444f2e7e0a8310ae4f25b5.tar.gz
etbsa-traccar-web-d68f47ef27eb6afc28444f2e7e0a8310ae4f25b5.tar.bz2
etbsa-traccar-web-d68f47ef27eb6afc28444f2e7e0a8310ae4f25b5.zip
Merge pull request #447 from Abyss777/save_state
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 6a3b1a5..1dc48ea 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));
}
});