aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/dialog/Server.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-11-17 15:36:34 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-11-17 15:36:34 +1300
commit58e1f370c568af64a1dcbd9af1d5541b0e9314ed (patch)
tree73f80cf7c33d19b996e8a4e91d47098e8e1976f6 /web/app/view/dialog/Server.js
parent62db06b85439b21a7851016f3e9c17f0abfe7185 (diff)
downloadtrackermap-web-58e1f370c568af64a1dcbd9af1d5541b0e9314ed.tar.gz
trackermap-web-58e1f370c568af64a1dcbd9af1d5541b0e9314ed.tar.bz2
trackermap-web-58e1f370c568af64a1dcbd9af1d5541b0e9314ed.zip
Unescape HTML in some cases
Diffstat (limited to 'web/app/view/dialog/Server.js')
-rw-r--r--web/app/view/dialog/Server.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/web/app/view/dialog/Server.js b/web/app/view/dialog/Server.js
index fbfb3c6a..8ff83992 100644
--- a/web/app/view/dialog/Server.js
+++ b/web/app/view/dialog/Server.js
@@ -28,6 +28,12 @@ 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,
@@ -44,6 +50,7 @@ Ext.define('Traccar.view.dialog.Server', {
fieldLabel: Strings.mapBingKey
}, {
xtype: 'textfield',
+ reference: 'mapUrlField',
name: 'mapUrl',
fieldLabel: Strings.mapCustom
}, {