aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/dialog/Server.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-04-18 21:48:40 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-04-18 21:48:40 -0700
commit04a92f0fbae8cee0e88b56e736a6c4178d39ca35 (patch)
tree724bd348f6433a78e4a781807da53f348a6cc584 /web/app/view/dialog/Server.js
parentecde88443393ac77b133d2682fef3885f859818e (diff)
downloadtrackermap-web-04a92f0fbae8cee0e88b56e736a6c4178d39ca35.tar.gz
trackermap-web-04a92f0fbae8cee0e88b56e736a6c4178d39ca35.tar.bz2
trackermap-web-04a92f0fbae8cee0e88b56e736a6c4178d39ca35.zip
Unescape all text fields (fix #4283)
Diffstat (limited to 'web/app/view/dialog/Server.js')
-rw-r--r--web/app/view/dialog/Server.js15
1 files changed, 5 insertions, 10 deletions
diff --git a/web/app/view/dialog/Server.js b/web/app/view/dialog/Server.js
index 8ff83992..c9729ccf 100644
--- a/web/app/view/dialog/Server.js
+++ b/web/app/view/dialog/Server.js
@@ -20,7 +20,8 @@ Ext.define('Traccar.view.dialog.Server', {
requires: [
'Traccar.view.ClearableComboBox',
- 'Traccar.view.dialog.MapPickerController'
+ 'Traccar.view.dialog.MapPickerController',
+ 'Traccar.view.UnescapedTextField'
],
controller: 'mapPicker',
@@ -28,12 +29,6 @@ Ext.define('Traccar.view.dialog.Server', {
items: {
xtype: 'form',
- listeners: {
- afterrender: function (view) {
- var field = view.up('panel').lookupReference('mapUrlField');
- field.setValue(Ext.String.htmlDecode(field.getValue()));
- }
- },
items: [{
xtype: 'fieldset',
title: Strings.sharedPreferences,
@@ -45,11 +40,11 @@ Ext.define('Traccar.view.dialog.Server', {
displayField: 'name',
valueField: 'key'
}, {
- xtype: 'textfield',
+ xtype: 'unescapedTextField',
name: 'bingKey',
fieldLabel: Strings.mapBingKey
}, {
- xtype: 'textfield',
+ xtype: 'unescapedTextField',
reference: 'mapUrlField',
name: 'mapUrl',
fieldLabel: Strings.mapCustom
@@ -90,7 +85,7 @@ Ext.define('Traccar.view.dialog.Server', {
displayField: 'name',
valueField: 'key'
}, {
- xtype: 'textfield',
+ xtype: 'unescapedTextField',
name: 'poiLayer',
fieldLabel: Strings.mapPoiLayer
}]