diff options
author | Abyss777 <abyss@fox5.ru> | 2016-09-01 09:12:53 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-09-01 09:12:53 +0500 |
commit | 2d5be9d378aedcc57bc520d94153b4c27a04b18c (patch) | |
tree | 0406e487e084f8580a62488654c7992d2c14c31b | |
parent | ee8beb01019f381eae09fb94e249e3d5b9312bbb (diff) | |
download | trackermap-server-2d5be9d378aedcc57bc520d94153b4c27a04b18c.tar.gz trackermap-server-2d5be9d378aedcc57bc520d94153b4c27a04b18c.tar.bz2 trackermap-server-2d5be9d378aedcc57bc520d94153b4c27a04b18c.zip |
Rename phoneNumber constant and field
-rw-r--r-- | web/app/view/CommandDialog.js | 4 | ||||
-rw-r--r-- | web/app/view/CommandDialogController.js | 10 | ||||
-rw-r--r-- | web/l10n/en.json | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/web/app/view/CommandDialog.js b/web/app/view/CommandDialog.js index d9c3beeb3..a374ab0ef 100644 --- a/web/app/view/CommandDialog.js +++ b/web/app/view/CommandDialog.js @@ -78,8 +78,8 @@ Ext.define('Traccar.view.CommandDialog', { items: [{ xtype: 'textfield', - fieldLabel: Strings.commandPhoneNumber, - name: 'phoneNumber' + fieldLabel: Strings.commandPhone, + name: 'phone' }, { xtype: 'textfield', reference: 'paramSmsMessage', 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 }); } diff --git a/web/l10n/en.json b/web/l10n/en.json index c4a130cf0..b6da25266 100644 --- a/web/l10n/en.json +++ b/web/l10n/en.json @@ -118,7 +118,7 @@ "commandDeviceIdentification": "Device Identification", "commandIndex": "Index", "commandData": "Data", - "commandPhoneNumber": "Phone Number", + "commandPhone": "Phone", "commandMessage": "Message", "eventAll": "All Events", "eventDeviceOnline": "Device is online", |