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/certificate.js | 710 +++++++++++++++++++++++----------------------- 1 file changed, 356 insertions(+), 354 deletions(-) (limited to 'install/ui/certificate.js') diff --git a/install/ui/certificate.js b/install/ui/certificate.js index 3158d048..56995282 100755 --- a/install/ui/certificate.js +++ b/install/ui/certificate.js @@ -20,377 +20,379 @@ * along with this program. If not, see . */ -var BEGIN_CERTIFICATE = '-----BEGIN CERTIFICATE-----'; -var END_CERTIFICATE = '-----END CERTIFICATE-----'; - -var BEGIN_CERTIFICATE_REQUEST = '-----BEGIN CERTIFICATE REQUEST-----'; -var END_CERTIFICATE_REQUEST = '-----END CERTIFICATE REQUEST-----'; - -var CRL_REASON = [ - 'Unspecified', - 'Key Compromise', - 'CA Compromise', - 'Affiliation Changed', - 'Superseded', - 'Cessation of Operation', - 'Certificate Hold', - null, - 'Remove from CRL', - 'Privilege Withdrawn', - 'AA Compromise' -]; - -var CERTIFICATE_STATUS_MISSING = 0; -var CERTIFICATE_STATUS_VALID = 1; -var CERTIFICATE_STATUS_REVOKED = 2; - -function certificate_parse_dn(dn) { - - var result = {}; - if (!dn) return result; - - // TODO: Use proper LDAP DN parser - var rdns = dn.split(','); - for (var i=0; i', { - 'title': that.title - }); - - var textarea = $('