diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2014-03-10 17:05:51 +0100 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2014-03-27 14:54:08 +0100 |
commit | 06a7a1b3cb277284448dd8344940395f0b29cd70 (patch) | |
tree | 2204bfebe49d3a2224fd4d5828c4980956ea4a26 /install/ui/src/freeipa/automember.js | |
parent | d5cf0b273ad511d6cb99fbcb900eff528fe172df (diff) | |
download | freeipa-06a7a1b3cb277284448dd8344940395f0b29cd70.tar.gz freeipa-06a7a1b3cb277284448dd8344940395f0b29cd70.tar.xz freeipa-06a7a1b3cb277284448dd8344940395f0b29cd70.zip |
webui: replace IPA.command usage with rpc.command
Replace all IPA.command, IPA.batch_command and IPA.concurrent_command usages
by equivalents from rpc module.
Reviewed-By: Adam Misnyovszki <amisnyov@redhat.com>
Diffstat (limited to 'install/ui/src/freeipa/automember.js')
-rw-r--r-- | install/ui/src/freeipa/automember.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/install/ui/src/freeipa/automember.js b/install/ui/src/freeipa/automember.js index 50fc69741..e9619b731 100644 --- a/install/ui/src/freeipa/automember.js +++ b/install/ui/src/freeipa/automember.js @@ -25,12 +25,13 @@ define([ './navigation', './phases', './reg', + './rpc', './text', './details', './search', './association', './entity'], - function(metadata_provider, IPA, $, navigation, phases, reg, text) { + function(metadata_provider, IPA, $, navigation, phases, reg, rpc, text) { var exp = IPA.automember = {}; @@ -524,7 +525,7 @@ IPA.automember.condition_widget = function(spec) { that.create_remove_command = function(values, on_success, on_error) { - var batch = IPA.batch_command({ + var batch = rpc.batch_command({ name: 'automember_remove_condition', on_success: on_success, on_error: on_error @@ -628,7 +629,7 @@ IPA.automember.default_group_widget = function(spec) { method = 'default_group_' + method; var command_name = that.entity.name + that.group_type + '_' + method; - var command = IPA.command({ + var command = rpc.command({ name: command_name, entity: that.entity.name, method: method, @@ -726,7 +727,7 @@ IPA.automember.rebuild_action = function(spec) { options['type'] = 'hostgroup'; } - var command = IPA.command({ + var command = rpc.command({ entity: 'automember', method: 'rebuild', options: options, |