summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/user.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-03-10 17:05:51 +0100
committerPetr Vobornik <pvoborni@redhat.com>2014-03-27 14:54:08 +0100
commit06a7a1b3cb277284448dd8344940395f0b29cd70 (patch)
tree2204bfebe49d3a2224fd4d5828c4980956ea4a26 /install/ui/src/freeipa/user.js
parentd5cf0b273ad511d6cb99fbcb900eff528fe172df (diff)
downloadfreeipa-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/user.js')
-rw-r--r--install/ui/src/freeipa/user.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/install/ui/src/freeipa/user.js b/install/ui/src/freeipa/user.js
index 6c5fbac4d..e6b252649 100644
--- a/install/ui/src/freeipa/user.js
+++ b/install/ui/src/freeipa/user.js
@@ -26,13 +26,14 @@ define([
'./jquery',
'./phases',
'./reg',
+ './rpc',
'./text',
'./details',
'./search',
'./association',
'./entity',
'./certificate'],
- function(IPA, $, phases, reg, text) {
+ function(IPA, $, phases, reg, rpc, text) {
/**
* User module
@@ -366,7 +367,7 @@ IPA.user.details_facet = function(spec) {
var pkey = that.get_pkey();
- var batch = IPA.batch_command({
+ var batch = rpc.batch_command({
name: 'user_details_refresh'
});
@@ -381,7 +382,7 @@ IPA.user.details_facet = function(spec) {
batch.add_command(user_command);
- var pwpolicy_command = IPA.command({
+ var pwpolicy_command = rpc.command({
entity: 'pwpolicy',
method: 'show',
options: {
@@ -406,7 +407,7 @@ IPA.user.details_facet = function(spec) {
batch.add_command(pwpolicy_command);
- var krbtpolicy_command = IPA.command({
+ var krbtpolicy_command = rpc.command({
entity: 'krbtpolicy',
method: 'show',
args: [ pkey ],
@@ -623,7 +624,7 @@ IPA.user_password_dialog = function(spec) {
that.set_password = function(pkey, current_password, password, on_success, on_error) {
- var command = IPA.command({
+ var command = rpc.command({
method: 'passwd',
args: [ pkey ],
options: {