aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-09-06 16:31:13 +0500
committerAbyss777 <abyss@fox5.ru>2016-09-06 16:31:13 +0500
commitd7afbb815c7d185df9143f886a7494cb73a69ac1 (patch)
treeed608dc9e56b1f0b639b60f14bfc104d6a04bedd
parent68d284f3023d49c0c3ae9879c5c75c9b152eda3b (diff)
downloadtrackermap-server-d7afbb815c7d185df9143f886a7494cb73a69ac1.tar.gz
trackermap-server-d7afbb815c7d185df9143f886a7494cb73a69ac1.tar.bz2
trackermap-server-d7afbb815c7d185df9143f886a7494cb73a69ac1.zip
- Rename ServerDialogController to MapPickerDialogController
- removed getView()
-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 () {