From 37c1c6a786e4ca385e373c645654663e38701e7c Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Fri, 24 Mar 2017 17:21:16 +0500 Subject: Use cookies to save buttons state instead of User/Server attributes --- web/app/view/MapPickerDialogController.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'web/app/view/MapPickerDialogController.js') 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)); } }); -- cgit v1.2.3