summaryrefslogtreecommitdiffstats
path: root/install/static/rule.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/rule.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/rule.js')
-rw-r--r--[-rwxr-xr-x]install/static/rule.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/install/static/rule.js b/install/static/rule.js
index 5abb08a9..e54aa27e 100755..100644
--- a/install/static/rule.js
+++ b/install/static/rule.js
@@ -20,11 +20,11 @@
/* REQUIRES: ipa.js, details.js, search.js, add.js, entity.js */
-function ipa_rule_details_section(spec){
+IPA.rule_details_section = function (spec){
spec = spec || {};
- var that = ipa_details_section(spec);
+ var that = IPA.details_section(spec);
that.text = spec.text;
that.field_name = spec.field_name;
@@ -38,7 +38,7 @@ function ipa_rule_details_section(spec){
if (that.text) container.append(that.text);
- var param_info = ipa_get_param_info(that.entity_name, that.field_name);
+ var param_info = IPA.get_param_info(that.entity_name, that.field_name);
var span = $('<span/>', {
name: that.field_name,
@@ -73,7 +73,7 @@ function ipa_rule_details_section(spec){
for (var j=0; j<that.tables.length; j++) {
var table = that.tables[j];
- param_info = ipa_get_param_info(that.entity_name, table.field_name);
+ param_info = IPA.get_param_info(that.entity_name, table.field_name);
var table_span = $('<span/>', {
name: table.field_name,
@@ -123,11 +123,11 @@ function ipa_rule_details_section(spec){
return that;
}
-function ipa_rule_association_table_widget(spec) {
+IPA.rule_association_table_widget = function (spec) {
spec = spec || {};
- var that = ipa_association_table_widget(spec);
+ var that = IPA.association_table_widget(spec);
that.category = spec.category;
@@ -135,7 +135,7 @@ function ipa_rule_association_table_widget(spec) {
var pkey = $.bbq.getState(that.entity_name + '-pkey', true) || '';
- var batch = ipa_batch_command({
+ var batch = IPA.batch_command({
'on_success': on_success,
'on_error': on_error
});
@@ -143,7 +143,7 @@ function ipa_rule_association_table_widget(spec) {
var command;
if (that.category) {
- command = ipa_command({
+ command = IPA.command({
'method': that.entity_name+'_mod',
'args': [pkey],
'options': {'all': true, 'rights': true},
@@ -157,7 +157,7 @@ function ipa_rule_association_table_widget(spec) {
batch.add_command(command);
}
- command = ipa_command({
+ command = IPA.command({
'method': that.entity_name+'_'+that.add_method,
'args': [pkey]
});