summaryrefslogtreecommitdiffstats
path: root/install/ui/certificate.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-01-23 07:41:10 +0700
committerAdam Young <ayoung@redhat.com>2011-01-26 16:42:55 -0500
commitadd7d701c688be4d9699034427e5ab1be67a8bac (patch)
treebc508017c5539ab103acd86925e9c46d66fcc356 /install/ui/certificate.js
parent5ca58d58b3563e9e275aa9eda2951e1123377dbd (diff)
downloadfreeipa-add7d701c688be4d9699034427e5ab1be67a8bac.tar.gz
freeipa-add7d701c688be4d9699034427e5ab1be67a8bac.tar.xz
freeipa-add7d701c688be4d9699034427e5ab1be67a8bac.zip
Check field's validity before executing add.
Diffstat (limited to 'install/ui/certificate.js')
-rwxr-xr-xinstall/ui/certificate.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/install/ui/certificate.js b/install/ui/certificate.js
index b7e5a51d3..4f12fc0cc 100755
--- a/install/ui/certificate.js
+++ b/install/ui/certificate.js
@@ -536,9 +536,9 @@ function certificate_status_widget(spec) {
that.widget_setup(container);
- that.valid = $('div[name=certificate-valid]', that.container);
- that.revoked = $('div[name=certificate-revoked]', that.container);
- that.missing = $('div[name=certificate-missing]', that.container);
+ that.status_valid = $('div[name=certificate-valid]', that.container);
+ that.status_revoked = $('div[name=certificate-revoked]', that.container);
+ that.status_missing = $('div[name=certificate-missing]', that.container);
var button = $('input[name=get]', that.container);
that.get_button = IPA.button({
@@ -620,11 +620,11 @@ function certificate_status_widget(spec) {
};
function set_status(status, revocation_reason) {
- that.valid.css('display', status == CERTIFICATE_STATUS_VALID ? 'inline' : 'none');
- that.missing.css('display', status == CERTIFICATE_STATUS_MISSING ? 'inline' : 'none');
+ that.status_valid.css('display', status == CERTIFICATE_STATUS_VALID ? 'inline' : 'none');
+ that.status_missing.css('display', status == CERTIFICATE_STATUS_MISSING ? 'inline' : 'none');
if (!that.is_selfsign()) {
- that.revoked.css('display', status == CERTIFICATE_STATUS_REVOKED ? 'inline' : 'none');
+ that.status_revoked.css('display', status == CERTIFICATE_STATUS_REVOKED ? 'inline' : 'none');
that.revoke_button.css('visibility', status == CERTIFICATE_STATUS_VALID ? 'visible' : 'hidden');
that.revocation_reason.html(revocation_reason == undefined ? '' : CRL_REASON[revocation_reason]);
that.restore_button.css('visibility', revocation_reason == 6 ? 'visible' : 'hidden');