diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-11-16 15:13:32 -0600 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-12-06 22:07:35 +0000 |
commit | 8f642bbe0885b4e6d375b705fcead6360d98b30f (patch) | |
tree | 354b50016aef64ef72b8844c5e66026fa50c9fa2 /install/ui/host.js | |
parent | 005b74d869ce240018985fd8abc752a5e200eb74 (diff) | |
download | freeipa.git-8f642bbe0885b4e6d375b705fcead6360d98b30f.tar.gz freeipa.git-8f642bbe0885b4e6d375b705fcead6360d98b30f.tar.xz freeipa.git-8f642bbe0885b4e6d375b705fcead6360d98b30f.zip |
Added commands into metadata.
The json_metadata command has been modified to accept some new
options and return the commands metadata. The API.txt has been
updated as well. The UI has been modified to use commands metadata
instead of methods metadata.
Ticket #388
Diffstat (limited to 'install/ui/host.js')
-rw-r--r-- | install/ui/host.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/install/ui/host.js b/install/ui/host.js index 654b34de..357eb3f8 100644 --- a/install/ui/host.js +++ b/install/ui/host.js @@ -144,12 +144,12 @@ IPA.host.entity = function(spec) { fields: [ { name: 'ip_address', - metadata: IPA.get_method_option('host_add', 'ip_address') + metadata: IPA.get_command_option('host_add', 'ip_address') }, { type: 'force_host_add_checkbox', name: 'force', - metadata: IPA.get_method_option('host_add', 'force') + metadata: IPA.get_command_option('host_add', 'force') } ] } @@ -392,7 +392,7 @@ IPA.host_deleter_dialog = function(spec) { that.deleter_dialog_create(); - var metadata = IPA.get_method_option('host_del', 'updatedns'); + var metadata = IPA.get_command_option('host_del', 'updatedns'); that.updatedns = $('<input/>', { type: 'checkbox', @@ -492,7 +492,7 @@ IPA.utc_date_column_format = function(value){ IPA.force_host_add_checkbox_widget = function(spec) { - var metadata = IPA.get_method_option('host_add', spec.name); + var metadata = IPA.get_command_option('host_add', spec.name); spec.label = metadata.label; spec.tooltip = metadata.doc; return IPA.checkbox_widget(spec); |