From 680148ed036bcef5ecfc0ca1938b9768d8a233ca Mon Sep 17 00:00:00 2001 From: Adam Young Date: Wed, 12 Jan 2011 19:51:22 -0500 Subject: scoping functions converting function of the form ipa_ to IPA. to remove them from the global namespace. https://fedorahosted.org/freeipa/ticket/212 --- install/static/hostgroup.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'install/static/hostgroup.js') 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(); -- cgit