aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/command
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-15 11:51:45 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-15 11:51:45 +1200
commit5cf1061cfcc5baf214bce145961512fd4f672621 (patch)
tree32efac22ba11abddec21656685c3e0ba730b1e47 /web/app/view/command
parent34a70e81ecb613c3216fcdd581a9724216137b41 (diff)
downloadtrackermap-server-5cf1061cfcc5baf214bce145961512fd4f672621.tar.gz
trackermap-server-5cf1061cfcc5baf214bce145961512fd4f672621.tar.bz2
trackermap-server-5cf1061cfcc5baf214bce145961512fd4f672621.zip
Rename other field to attributes
Diffstat (limited to 'web/app/view/command')
-rw-r--r--web/app/view/command/CommandDialog.js2
-rw-r--r--web/app/view/command/CommandDialogController.js10
2 files changed, 6 insertions, 6 deletions
diff --git a/web/app/view/command/CommandDialog.js b/web/app/view/command/CommandDialog.js
index dbde458e3..e862b9076 100644
--- a/web/app/view/command/CommandDialog.js
+++ b/web/app/view/command/CommandDialog.js
@@ -43,7 +43,7 @@ Ext.define('Traccar.view.command.CommandDialog', {
}, {
xtype: 'fieldcontainer',
reference: 'paramPositionPeriodic',
- name: 'other',
+ name: 'attributes',
hidden: true,
items: [{
diff --git a/web/app/view/command/CommandDialogController.js b/web/app/view/command/CommandDialogController.js
index 84ab8ede5..6dfb322f5 100644
--- a/web/app/view/command/CommandDialogController.js
+++ b/web/app/view/command/CommandDialogController.js
@@ -24,17 +24,17 @@ Ext.define('Traccar.view.command.CommandDialogController', {
},
onSendClick: function(button) {
- var other;
+ var attributes;
var form = button.up('window').down('form');
form.updateRecord();
var record = form.getRecord();
if (record.get('type') === 'positionPeriodic') {
- other = this.lookupReference('paramPositionPeriodic');
- var value = other.down('numberfield[name="frequency"]').getValue();
- value *= other.down('combobox[name="unit"]').getValue();
+ attributes = this.lookupReference('paramPositionPeriodic');
+ var value = attributes.down('numberfield[name="frequency"]').getValue();
+ value *= attributes.down('combobox[name="unit"]').getValue();
- record.set('other', {
+ record.set('attributes', {
frequency: value
});
}