summaryrefslogtreecommitdiffstats
path: root/install/ui/rule.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/rule.js')
-rw-r--r--install/ui/rule.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/install/ui/rule.js b/install/ui/rule.js
index 9076f4ee4..8c69eca8b 100644
--- a/install/ui/rule.js
+++ b/install/ui/rule.js
@@ -145,10 +145,11 @@ IPA.rule_association_table_widget = function (spec) {
if (that.category) {
command = IPA.command({
- 'method': that.entity_name+'_mod',
- 'args': [pkey],
- 'options': {'all': true, 'rights': true},
- 'on_success': function() {
+ entity: that.entity_name,
+ method: 'mod',
+ args: [pkey],
+ options: {all: true, rights: true},
+ on_success: function() {
var record = {};
record[that.category.name] = [''];
that.category.load(record);
@@ -159,8 +160,9 @@ IPA.rule_association_table_widget = function (spec) {
}
command = IPA.command({
- 'method': that.entity_name+'_'+that.add_method,
- 'args': [pkey]
+ entity: that.entity_name,
+ method: that.add_method,
+ args: [pkey]
});
command.set_option(that.other_entity, values.join(','));
batch.add_command(command);