diff options
author | Martin Kosek <mkosek@redhat.com> | 2011-02-16 14:26:35 +0100 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-02-18 09:49:37 -0500 |
commit | b7700ea815222b4de80741ad77b31707051300bd (patch) | |
tree | 4c92ba518468af34f9587131c8f4de3bb13613e3 /install/ui/host.js | |
parent | 27532f54687297e5dfa7d66503f22186d7fc3237 (diff) | |
download | freeipa-b7700ea815222b4de80741ad77b31707051300bd.tar.gz freeipa-b7700ea815222b4de80741ad77b31707051300bd.tar.xz freeipa-b7700ea815222b4de80741ad77b31707051300bd.zip |
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
Diffstat (limited to 'install/ui/host.js')
-rw-r--r-- | install/ui/host.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/install/ui/host.js b/install/ui/host.js index 1f0a76dd5..943783e3b 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) { |