Continuation of removing of not supported command options from Web UI

This patch removes following non-existing command options:
 * all,rights in host_disable
 * record_type in dns_record_add
 * all,rights in various xxx_remove_xxx commands used in rule_association_table_field (removing association)

https://fedorahosted.org/freeipa/ticket/2878
This commit is contained in:
Petr Vobornik
2012-06-27 16:19:14 +02:00
parent d46687ea91
commit 5b103ca5b5
3 changed files with 2 additions and 4 deletions

View File

@@ -1042,7 +1042,7 @@ IPA.dns.record_entity = function(spec) {
{
name: 'record_type',
type: 'dnsrecord_type',
enabled: false,
flags: ['no_command'],
widget: 'general.record_type'
}
],

View File

@@ -648,7 +648,6 @@ IPA.host_unprovision_dialog = function(spec) {
entity: that.entity.name,
method: 'disable',
args: pkey,
options: { all: true, rights: true },
on_success: on_success,
on_error: on_error
});

View File

@@ -209,8 +209,7 @@ IPA.rule_association_table_field = function(spec) {
var command = IPA.command({
entity: that.entity.name,
method: that.widget.remove_method,
args: that.entity.get_primary_key(),
options: {all: true, rights: true}
args: that.entity.get_primary_key()
});
command.set_option(that.widget.other_entity.name, values);