summaryrefslogtreecommitdiffstats
path: root/install/static/add.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-01-12 19:51:22 -0500
committerEndi S. Dewata <edewata@redhat.com>2011-01-14 04:03:47 -0500
commit680148ed036bcef5ecfc0ca1938b9768d8a233ca (patch)
tree633e36ec231f41fcf03ff42a922829beef8c551c /install/static/add.js
parent00b3984e5a754b40bd10515ce9629583c78b6c8e (diff)
downloadfreeipa.git-680148ed036bcef5ecfc0ca1938b9768d8a233ca.tar.gz
freeipa.git-680148ed036bcef5ecfc0ca1938b9768d8a233ca.tar.xz
freeipa.git-680148ed036bcef5ecfc0ca1938b9768d8a233ca.zip
scoping functions
converting function of the form ipa_<name> to IPA.<name> to remove them from the global namespace. https://fedorahosted.org/freeipa/ticket/212
Diffstat (limited to 'install/static/add.js')
-rw-r--r--install/static/add.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/install/static/add.js b/install/static/add.js
index 0acf7858..fd3f6055 100644
--- a/install/static/add.js
+++ b/install/static/add.js
@@ -21,11 +21,11 @@
/* REQUIRES: ipa.js */
-function ipa_add_dialog(spec) {
+IPA.add_dialog = function (spec) {
spec = spec || {};
- var that = ipa_dialog(spec);
+ var that = IPA.dialog(spec);
that.name = spec.name;
that.title = spec.title;
@@ -109,7 +109,7 @@ function ipa_add_dialog(spec) {
save_field(that.fields[i], record, args, options);
}
- ipa_cmd('add', args, options, on_success, on_error, that.entity_name);
+ IPA.cmd('add', args, options, on_success, on_error, that.entity_name);
};
that.add_dialog_init = that.init;