summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorMike Rennie2013-10-21 12:42:34 (EDT)
committer Szymon Brandys2013-11-26 04:49:44 (EST)
commit4cf097db1c31ec2360bde658091e214c367902b6 (patch)
tree4e6f8bd4398c2d1db98780b4883dc335e46f6671
parent37cb7fa489a49e68e6c91ed85dc9fe6f874f65b8 (diff)
downloadorg.eclipse.orion.client-4cf097db1c31ec2360bde658091e214c367902b6.zip
org.eclipse.orion.client-4cf097db1c31ec2360bde658091e214c367902b6.tar.gz
org.eclipse.orion.client-4cf097db1c31ec2360bde658091e214c367902b6.tar.bz2
Bug 417729 - Editing repo config setting should prefill initial value in
field Signed-off-by: Mike Rennie <Michael_Rennie@ca.ibm.com>
-rw-r--r--bundles/org.eclipse.orion.client.git/web/orion/git/gitCommands.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/bundles/org.eclipse.orion.client.git/web/orion/git/gitCommands.js b/bundles/org.eclipse.orion.client.git/web/orion/git/gitCommands.js
index f72de54..ff61954 100644
--- a/bundles/org.eclipse.orion.client.git/web/orion/git/gitCommands.js
+++ b/bundles/org.eclipse.orion.client.git/web/orion/git/gitCommands.js
@@ -2101,7 +2101,14 @@ var exports = {};
});
commandService.addCommand(addConfigEntryCommand);
- var editConfigParameters = new mCommandRegistry.ParametersDescription([new mCommandRegistry.CommandParameter('value', 'text', messages['Value:'])]); //$NON-NLS-1$ //$NON-NLS-0$
+ var editConfigParameters = new mCommandRegistry.ParametersDescription([], null, function(commandInvocation) {
+ var items = commandInvocation.items;
+ var val;
+ if(items) {
+ val = items.Value;
+ }
+ return [new mCommandRegistry.CommandParameter('value', 'text', messages['Value:'], val)]; //$NON-NLS-2$ //$NON-NLS-1$ //$NON-NLS-0$
+ });
var editConfigEntryCommand = new mCommands.Command({
name: messages["Edit"],