From cfa8225c8298fd933d92f62928edbd1f6f9096fc Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 26 Jul 2015 12:28:03 +1200 Subject: Extra parameters for commands --- web/app/view/command/CommandDialog.js | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'web/app/view/command/CommandDialog.js') diff --git a/web/app/view/command/CommandDialog.js b/web/app/view/command/CommandDialog.js index ef99c4db6..7f4b3c592 100644 --- a/web/app/view/command/CommandDialog.js +++ b/web/app/view/command/CommandDialog.js @@ -37,7 +37,28 @@ Ext.define('Traccar.view.command.CommandDialog', { fieldLabel: strings.command_type, store: 'CommandTypes', displayField: 'name', - valueField: 'key' + valueField: 'key', + listeners: { + select: 'onSelect' + } + }, { + xtype: 'fieldcontainer', + reference: 'paramPositionFix', + name: 'other', + hidden: true, + + items: [{ + xtype: 'numberfield', + fieldLabel: strings.command_frequency, + name: 'frequency' + }, { + xtype: 'combobox', + fieldLabel: strings.command_unit, + name: 'unit', + store: 'TimeUnits', + displayField: 'name', + valueField: 'multiplier' + }] }] }, -- cgit v1.2.3