aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/ServerDialog.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-09-05 14:27:30 +0500
committerAbyss777 <abyss@fox5.ru>2016-09-05 14:27:30 +0500
commitb7403aaadd130bf1496b97c07667842813d99550 (patch)
tree4a334be60e150b729fd8115e8227afb98cd8f8ff /web/app/view/ServerDialog.js
parent6aca189651d8587b9178a38c1830a8cbd8ae0d46 (diff)
downloadtrackermap-server-b7403aaadd130bf1496b97c07667842813d99550.tar.gz
trackermap-server-b7403aaadd130bf1496b97c07667842813d99550.tar.bz2
trackermap-server-b7403aaadd130bf1496b97c07667842813d99550.zip
Implement retrieving map center from current map
Diffstat (limited to 'web/app/view/ServerDialog.js')
-rw-r--r--web/app/view/ServerDialog.js39
1 files changed, 24 insertions, 15 deletions
diff --git a/web/app/view/ServerDialog.js b/web/app/view/ServerDialog.js
index dd4579168..0f8dbd2eb 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.BaseEditDialogController'
+ 'Traccar.view.ServerDialogController'
],
- controller: 'baseEditDialog',
+ controller: 'serverEditDialog',
title: Strings.serverTitle,
items: {
@@ -66,19 +66,28 @@ Ext.define('Traccar.view.ServerDialog', {
displayField: 'name',
valueField: 'key'
}, {
- xtype: 'numberfield',
- name: 'latitude',
- fieldLabel: Strings.positionLatitude,
- decimalPrecision: Traccar.Style.coordinatePrecision
- }, {
- xtype: 'numberfield',
- name: 'longitude',
- fieldLabel: Strings.positionLongitude,
- decimalPrecision: Traccar.Style.coordinatePrecision
- }, {
- xtype: 'numberfield',
- name: 'zoom',
- fieldLabel: Strings.serverZoom
+ xtype: 'fieldset',
+ reference: 'mapCenter',
+ title: Strings.sharedMapCenter,
+ defaultType: 'numberfield',
+ items: [{
+ name: 'latitude',
+ fieldLabel: Strings.positionLatitude,
+ decimalPrecision: Traccar.Style.coordinatePrecision
+ }, {
+ name: 'longitude',
+ fieldLabel: Strings.positionLongitude,
+ decimalPrecision: Traccar.Style.coordinatePrecision
+ }, {
+ name: 'zoom',
+ fieldLabel: Strings.serverZoom
+ }, {
+ xtype: 'button',
+ margin: Traccar.Style.inFormButtonMargin,
+ enableToggle: false,
+ text: Strings.sharedGetFromMap,
+ handler: 'getFromMap'
+ }]
}, {
xtype: 'checkboxfield',
name: 'twelveHourFormat',