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/certificate.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/certificate.js')
-rwxr-xr-x | install/ui/src/freeipa/certificate.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/install/ui/src/freeipa/certificate.js b/install/ui/src/freeipa/certificate.js index bd9f7459a..7a7ece0e1 100755 --- a/install/ui/src/freeipa/certificate.js +++ b/install/ui/src/freeipa/certificate.js @@ -27,9 +27,10 @@ define([ './menu', './phases', './reg', + './rpc', './text', './dialog'], - function(lang, metadata_provider, IPA, $, menu, phases, reg, text) { + function(lang, metadata_provider, IPA, $, menu, phases, reg, rpc, text) { var exp = IPA.cert = {}; @@ -517,7 +518,7 @@ IPA.cert.load_policy = function(spec) { }; that.load_revocation_reason = function(serial_number) { - IPA.command({ + rpc.command({ entity: 'cert', method: 'show', args: [serial_number], @@ -643,7 +644,7 @@ IPA.cert.request_action = function(spec) { message: request_message, request: function(values) { - IPA.command({ + rpc.command({ entity: 'cert', method: 'request', args: [values.request], @@ -702,7 +703,7 @@ IPA.cert.revoke_action = function(spec) { var certificate = facet.certificate; - IPA.command({ + rpc.command({ entity: 'cert', method: 'revoke', args: [certificate.serial_number], @@ -759,7 +760,7 @@ IPA.cert.restore_action = function(spec) { var certificate = facet.certificate; - IPA.command({ + rpc.command({ entity: 'cert', method: 'remove_hold', args: [certificate.serial_number], |