diff options
author | Adam Young <ayoung@redhat.com> | 2011-01-12 19:51:22 -0500 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-01-14 04:03:47 -0500 |
commit | 680148ed036bcef5ecfc0ca1938b9768d8a233ca (patch) | |
tree | 633e36ec231f41fcf03ff42a922829beef8c551c /install/static/hostgroup.js | |
parent | 00b3984e5a754b40bd10515ce9629583c78b6c8e (diff) | |
download | freeipa.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/hostgroup.js')
-rw-r--r-- | install/static/hostgroup.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/install/static/hostgroup.js b/install/static/hostgroup.js index 30383013..6e509509 100644 --- a/install/static/hostgroup.js +++ b/install/static/hostgroup.js @@ -22,11 +22,11 @@ IPA.add_entity( function() { - var that = ipa_entity({ + var that = IPA.entity({ 'name': 'hostgroup' }); that.init = function() { - var search_facet = ipa_search_facet({ + var search_facet = IPA.search_facet({ name: 'search', label: 'Search', entity_name: that.name @@ -36,23 +36,23 @@ IPA.add_entity( function() { that.add_facet(search_facet); that.add_facet(function() { - var that = ipa_details_facet({name:'details',label:'Details'}); + var that = IPA.details_facet({name:'details',label:'Details'}); that.add_section( - ipa_stanza({name:'identity', label:'Hostgroup Details'}). + IPA.stanza({name:'identity', label:'Hostgroup Details'}). input({name:'cn'}). input({name: 'description'})); return that; }()); - var dialog = ipa_add_dialog({ + var dialog = IPA.add_dialog({ name: 'add', title: 'Add Hostgroup' }); that.add_dialog(dialog); - dialog.add_field(ipa_text_widget({name: 'cn', undo: false})); - dialog.add_field(ipa_text_widget({name: 'description', undo: false})); + dialog.add_field(IPA.text_widget({name: 'cn', undo: false})); + dialog.add_field(IPA.text_widget({name: 'description', undo: false})); dialog.init(); that.create_association_facets(); |