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/search.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'install/static/search.js') diff --git a/install/static/search.js b/install/static/search.js index 2fb4be13..d449a8e1 100644 --- a/install/static/search.js +++ b/install/static/search.js @@ -22,11 +22,11 @@ /* REQUIRES: ipa.js */ -function ipa_search_widget(spec) { +IPA.search_widget = function (spec) { spec = spec || {}; - var that = ipa_table_widget(spec); + var that = IPA.table_widget(spec); that.facet = spec.facet; @@ -85,7 +85,7 @@ function ipa_search_widget(spec) { var search_filter = $('span[name=search-filter]', that.container); var button = $('input[name=find]', search_filter); - that.find_button = ipa_button({ + that.find_button = IPA.button({ 'label': IPA.messages.button.find, 'icon': 'ui-icon-search', 'click': function() { that.find(that.container); } @@ -167,7 +167,7 @@ function ipa_search_widget(spec) { var title = 'Remove '+that.label; - var dialog = ipa_deleter_dialog({ + var dialog = IPA.deleter_dialog({ 'title': title, 'parent': that.container, 'values': values @@ -175,7 +175,7 @@ function ipa_search_widget(spec) { dialog.remove = function() { - var batch = ipa_batch_command({ + var batch = IPA.batch_command({ 'on_success': function() { that.refresh(); dialog.close(); @@ -187,7 +187,7 @@ function ipa_search_widget(spec) { }); for (var i=0; i