Index: pki/redhat/ca-ui/shared/webapps/ca/ee/ca/reasonToRevoke.template =================================================================== --- pki/redhat/ca-ui/shared/webapps/ca/ee/ca/reasonToRevoke.template (revision 16054) +++ pki/redhat/ca-ui/shared/webapps/ca/ee/ca/reasonToRevoke.template (working copy) @@ -33,7 +33,7 @@ var filter = "(|"; var n = 0; - if (!dateIsEmpty(document.forms[0])) { + if (document.forms[0].invalidityEnabled.checked) { var d = convertDate(document.forms[0], "Invalidity Date"); if (d == null) return false; document.forms[0].invalidityDate.value = d; @@ -77,6 +77,26 @@ return true; } +function clickedOnInvalidityEnabled() +{ + if (document.forms[0].invalidityEnabled.checked) { + var date = new Date(); + if (document.forms[0].day.options[document.forms[0].day.selectedIndex].value == 0) { + document.forms[0].day.selectedIndex = date.getDate(); + } + if (document.forms[0].month.options[document.forms[0].month.selectedIndex].value == 13) { + document.forms[0].month.selectedIndex = date.getMonth() +1; + } + if (document.forms[0].year.options[document.forms[0].year.selectedIndex].value == 0) { + for (var i = 0; i < document.forms[0].year.options.length; i++) { + if (document.forms[0].year.options[i].value == date.getFullYear()) { + document.forms[0].year.selectedIndex = i; + } + } + } + } +} + function toHex1(number) { var absValue = "", sign = ""; @@ -283,6 +303,7 @@ + Invalidity date:  Index: pki/redhat/ca-ui/shared/webapps/ca/ee/ca/srchCert.html =================================================================== --- pki/redhat/ca-ui/shared/webapps/ca/ee/ca/srchCert.html (revision 16054) +++ pki/redhat/ca-ui/shared/webapps/ca/ee/ca/srchCert.html (working copy) @@ -345,7 +345,7 @@
- + @@ -411,23 +411,11 @@ @@ -490,23 +478,11 @@