aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/dialog/ComputedAttribute.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/ComputedAttribute.js
parentecde88443393ac77b133d2682fef3885f859818e (diff)
downloadetbsa-traccar-web-04a92f0fbae8cee0e88b56e736a6c4178d39ca35.tar.gz
etbsa-traccar-web-04a92f0fbae8cee0e88b56e736a6c4178d39ca35.tar.bz2
etbsa-traccar-web-04a92f0fbae8cee0e88b56e736a6c4178d39ca35.zip
Unescape all text fields (fix #4283)
Diffstat (limited to 'web/app/view/dialog/ComputedAttribute.js')
-rw-r--r--web/app/view/dialog/ComputedAttribute.js14
1 files changed, 5 insertions, 9 deletions
diff --git a/web/app/view/dialog/ComputedAttribute.js b/web/app/view/dialog/ComputedAttribute.js
index 22cfb82..adae7f7 100644
--- a/web/app/view/dialog/ComputedAttribute.js
+++ b/web/app/view/dialog/ComputedAttribute.js
@@ -20,7 +20,9 @@ Ext.define('Traccar.view.dialog.ComputedAttribute', {
extend: 'Traccar.view.dialog.BaseEdit',
requires: [
- 'Traccar.view.dialog.ComputedAttributeController'
+ 'Traccar.view.dialog.ComputedAttributeController',
+ 'Traccar.view.UnescapedTextField',
+ 'Traccar.view.UnescapedTextAreaField'
],
controller: 'computedAttribute',
@@ -28,14 +30,8 @@ Ext.define('Traccar.view.dialog.ComputedAttribute', {
items: {
xtype: 'form',
- listeners: {
- afterrender: function (view) {
- var field = view.up('panel').lookupReference('expressionField');
- field.setValue(Ext.String.htmlDecode(field.getValue()));
- }
- },
items: [{
- xtype: 'textfield',
+ xtype: 'unescapedTextField',
name: 'description',
fieldLabel: Strings.sharedDescription
}, {
@@ -49,7 +45,7 @@ Ext.define('Traccar.view.dialog.ComputedAttribute', {
change: 'onAttributeChange'
}
}, {
- xtype: 'textareafield',
+ xtype: 'unescapedTextAreaField',
reference: 'expressionField',
name: 'expression',
fieldLabel: Strings.sharedExpression,