aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/command/CommandDialogController.js
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/CommandDialogController.js
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/CommandDialogController.js')
-rw-r--r--web/app/view/command/CommandDialogController.js10
1 files changed, 5 insertions, 5 deletions
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
});
}