aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/command/CommandDialog.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-07-26 12:28:03 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-07-26 12:28:03 +1200
commitcfa8225c8298fd933d92f62928edbd1f6f9096fc (patch)
tree0b9792071a84ccaab8716b3b4abb46694d6aeff7 /web/app/view/command/CommandDialog.js
parent430528f29c0b572770ec43f43ac285a354ba08de (diff)
downloadtraccar-server-cfa8225c8298fd933d92f62928edbd1f6f9096fc.tar.gz
traccar-server-cfa8225c8298fd933d92f62928edbd1f6f9096fc.tar.bz2
traccar-server-cfa8225c8298fd933d92f62928edbd1f6f9096fc.zip
Extra parameters for commands
Diffstat (limited to 'web/app/view/command/CommandDialog.js')
-rw-r--r--web/app/view/command/CommandDialog.js23
1 files changed, 22 insertions, 1 deletions
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'
+ }]
}]
},