aboutsummaryrefslogtreecommitdiff
path: root/web/app/view
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view')
-rw-r--r--web/app/view/MapPickerDialogController.js (renamed from web/app/view/ServerDialogController.js)10
-rw-r--r--web/app/view/ServerDialog.js4
-rw-r--r--web/app/view/UserDialogController.js2
3 files changed, 8 insertions, 8 deletions
diff --git a/web/app/view/ServerDialogController.js b/web/app/view/MapPickerDialogController.js
index 55f49f676..4f202d195 100644
--- a/web/app/view/ServerDialogController.js
+++ b/web/app/view/MapPickerDialogController.js
@@ -15,9 +15,9 @@
* limitations under the License.
*/
-Ext.define('Traccar.view.ServerDialogController', {
+Ext.define('Traccar.view.MapPickerDialogController', {
extend: 'Traccar.view.BaseEditDialogController',
- alias: 'controller.serverEditDialog',
+ alias: 'controller.mapPickerDialog',
config: {
listen: {
@@ -34,8 +34,8 @@ Ext.define('Traccar.view.ServerDialogController', {
},
setMapState: function (lat, lon, zoom) {
- this.getView().lookupReference('latitude').setValue(lat);
- this.getView().lookupReference('longitude').setValue(lon);
- this.getView().lookupReference('zoom').setValue(zoom);
+ this.lookupReference('latitude').setValue(lat);
+ this.lookupReference('longitude').setValue(lon);
+ this.lookupReference('zoom').setValue(zoom);
}
});
diff --git a/web/app/view/ServerDialog.js b/web/app/view/ServerDialog.js
index 40afa4ec3..46c76ffa8 100644
--- a/web/app/view/ServerDialog.js
+++ b/web/app/view/ServerDialog.js
@@ -18,10 +18,10 @@ Ext.define('Traccar.view.ServerDialog', {
extend: 'Traccar.view.BaseEditDialog',
requires: [
- 'Traccar.view.ServerDialogController'
+ 'Traccar.view.MapPickerDialogController'
],
- controller: 'serverEditDialog',
+ controller: 'mapPickerDialog',
title: Strings.serverTitle,
items: {
diff --git a/web/app/view/UserDialogController.js b/web/app/view/UserDialogController.js
index 5e541c870..52d649b9c 100644
--- a/web/app/view/UserDialogController.js
+++ b/web/app/view/UserDialogController.js
@@ -15,7 +15,7 @@
*/
Ext.define('Traccar.view.UserDialogController', {
- extend: 'Traccar.view.ServerDialogController',
+ extend: 'Traccar.view.MapPickerDialogController',
alias: 'controller.userDialog',
init: function () {