From 2d5be9d378aedcc57bc520d94153b4c27a04b18c Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Thu, 1 Sep 2016 09:12:53 +0500 Subject: Rename phoneNumber constant and field --- web/app/view/CommandDialogController.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'web/app/view/CommandDialogController.js') diff --git a/web/app/view/CommandDialogController.js b/web/app/view/CommandDialogController.js index 120854df1..402006579 100644 --- a/web/app/view/CommandDialogController.js +++ b/web/app/view/CommandDialogController.js @@ -32,7 +32,7 @@ Ext.define('Traccar.view.CommandDialogController', { }, onSendClick: function (button) { - var attributes, value, record, form, index, phoneNumber; + var attributes, value, record, form, index, phone; form = button.up('window').down('form'); form.updateRecord(); @@ -61,18 +61,18 @@ Ext.define('Traccar.view.CommandDialogController', { if (record.get('type') === 'sendUssd') { attributes = this.lookupReference('paramSendSmsUssd'); - phoneNumber = attributes.down('textfield[name="phoneNumber"]').getValue(); + phone = attributes.down('textfield[name="phone"]').getValue(); record.set('attributes', { - phoneNumber: phoneNumber + phone: phone }); } if (record.get('type') === 'sendSms') { attributes = this.lookupReference('paramSendSmsUssd'); - phoneNumber = attributes.down('textfield[name="phoneNumber"]').getValue(); + phone = attributes.down('textfield[name="phone"]').getValue(); value = attributes.down('textfield[name="message"]').getValue(); record.set('attributes', { - phoneNumber: phoneNumber, + phone: phone, message: value }); } -- cgit v1.2.3