diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2011-10-24 14:53:29 +0200 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-11-02 15:37:49 +0000 |
commit | 9afe4b98da13bbf1ce2fd68a660ee1d77fd84f2f (patch) | |
tree | 76ddd647312cda21d55d8da0189e0b6321013d96 /install/ui/certificate.js | |
parent | 237a021848dd3a1e4716971ae907910e1cbfbc8e (diff) | |
download | freeipa.git-9afe4b98da13bbf1ce2fd68a660ee1d77fd84f2f.tar.gz freeipa.git-9afe4b98da13bbf1ce2fd68a660ee1d77fd84f2f.tar.xz freeipa.git-9afe4b98da13bbf1ce2fd68a660ee1d77fd84f2f.zip |
Page is cleared before it is visible
https://fedorahosted.org/freeipa/ticket/1459
Changes:
* added clear method to widgets, section, search, details, association facets
* clear and refresh method in facet are called only if key/filter was changed
* added id generator for widgets
Diffstat (limited to 'install/ui/certificate.js')
-rwxr-xr-x | install/ui/certificate.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/install/ui/certificate.js b/install/ui/certificate.js index 5439c492..d3411d05 100755 --- a/install/ui/certificate.js +++ b/install/ui/certificate.js @@ -725,6 +725,15 @@ IPA.cert.status_widget = function(spec) { } }; + that.clear = function() { + that.status_valid.css('display', 'none'); + that.status_missing.css('display', 'none'); + that.status_revoked.css('display', 'none'); + that.revoke_button.css('display', 'none'); + that.restore_button.css('display', 'none'); + that.revocation_reason.text(''); + }; + function set_status(status, revocation_reason) { that.status_valid.css('display', status == IPA.cert.CERTIFICATE_STATUS_VALID ? 'inline' : 'none'); that.status_missing.css('display', status == IPA.cert.CERTIFICATE_STATUS_MISSING ? 'inline' : 'none'); |