From b7700ea815222b4de80741ad77b31707051300bd Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Wed, 16 Feb 2011 14:26:35 +0100 Subject: Remove WebUI identifiers from global namespace Many WebUI identifiers were defined in a global namespace. This is not a good programming practice and may result in name clashes, for example with other libraries. This patch moves these variables to IPA namespace or its sub-namespaces, when meaningful. https://fedorahosted.org/freeipa/ticket/212 --- install/ui/host.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'install/ui/host.js') diff --git a/install/ui/host.js b/install/ui/host.js index 1f0a76dd..943783e3 100644 --- a/install/ui/host.js +++ b/install/ui/host.js @@ -198,7 +198,7 @@ IPA.host_details_facet = function (spec) { that.add_section(section); //TODO add label to messages - section.add_field(host_provisioning_status_widget({ + section.add_field(IPA.host_provisioning_status_widget({ 'name': 'provisioning_status', 'label': 'Status', 'facet': that @@ -210,7 +210,7 @@ IPA.host_details_facet = function (spec) { }); that.add_section(section); - section.add_field(host_certificate_status_widget({ + section.add_field(IPA.host_certificate_status_widget({ 'name': 'certificate_status', 'label': 'Status' })); @@ -247,7 +247,7 @@ IPA.host_details_facet = function (spec) { }; -function host_provisioning_status_widget(spec) { +IPA.host_provisioning_status_widget = function (spec) { spec = spec || {}; @@ -430,13 +430,13 @@ function host_provisioning_status_widget(spec) { } return that; -} +}; -function host_certificate_status_widget(spec) { +IPA.host_certificate_status_widget = function (spec) { spec = spec || {}; - var that = certificate_status_widget(spec); + var that = IPA.certificate_status_widget(spec); that.init = function() { @@ -463,7 +463,7 @@ function host_certificate_status_widget(spec) { }; return that; -} +}; IPA.host_managedby_host_facet = function (spec) { -- cgit