From 805b94f22d42eddee42ed8772aca89036edb8399 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Tue, 12 Apr 2011 02:13:30 -0500 Subject: Merged IPA.cmd() into IPA.command(). The IPA.cmd() has been merged into IPA.command(). All invocations and test cases have been converted. Ticket #988 --- install/ui/rule.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'install/ui/rule.js') 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); -- cgit