summaryrefslogtreecommitdiffstats
path: root/install/ui/rule.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-04-12 02:13:30 -0500
committerAdam Young <ayoung@redhat.com>2011-04-13 23:27:50 -0400
commit805b94f22d42eddee42ed8772aca89036edb8399 (patch)
tree12c6d80ce465b0541cfb15332177f36fba79bc0b /install/ui/rule.js
parent9cac1d88fcffcce65018869827eadcfc0ff157f1 (diff)
downloadfreeipa-805b94f22d42eddee42ed8772aca89036edb8399.tar.gz
freeipa-805b94f22d42eddee42ed8772aca89036edb8399.tar.xz
freeipa-805b94f22d42eddee42ed8772aca89036edb8399.zip
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
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);