aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/dialog/ComputedAttribute.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/dialog/ComputedAttribute.js')
-rw-r--r--web/app/view/dialog/ComputedAttribute.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/web/app/view/dialog/ComputedAttribute.js b/web/app/view/dialog/ComputedAttribute.js
index ef6269be..22cfb829 100644
--- a/web/app/view/dialog/ComputedAttribute.js
+++ b/web/app/view/dialog/ComputedAttribute.js
@@ -28,6 +28,12 @@ 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',
name: 'description',
@@ -44,6 +50,7 @@ Ext.define('Traccar.view.dialog.ComputedAttribute', {
}
}, {
xtype: 'textareafield',
+ reference: 'expressionField',
name: 'expression',
fieldLabel: Strings.sharedExpression,
allowBlank: false