summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/add.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/add.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/add.js')
-rw-r--r--install/ui/src/freeipa/add.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/install/ui/src/freeipa/add.js b/install/ui/src/freeipa/add.js
index 22761c5ad..0a0942e97 100644
--- a/install/ui/src/freeipa/add.js
+++ b/install/ui/src/freeipa/add.js
@@ -19,8 +19,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-define(['./ipa', './jquery', './navigation', './text', './field', './widget', './dialog'],
- function(IPA, $, navigation, text) {
+define(['./ipa', './jquery', './navigation', './rpc', './text', './field', './widget', './dialog'],
+ function(IPA, $, navigation, rpc, text) {
/**
* Entity adder dialog
@@ -42,11 +42,11 @@ IPA.entity_adder_dialog = function(spec) {
that.method = spec.method || 'add';
/** @property {Function} on_error Custom add error handler */
that.on_error = spec.on_error ;
- /** @property {boolean} retry=true Allow retry on error (same as in IPA.command)*/
+ /** @property {boolean} retry=true Allow retry on error (same as in rpc.command)*/
that.retry = typeof spec.retry !== 'undefined' ? spec.retry : true;
/**
* Add command
- * @property {IPA.command}
+ * @property {rpc.command}
* @protected
*/
that.command = null;
@@ -184,7 +184,7 @@ IPA.entity_adder_dialog = function(spec) {
var pkey_name = that.entity.metadata.primary_key;
- var command = IPA.command({
+ var command = rpc.command({
entity: that.entity.name,
method: that.method,
retry: that.retry