summaryrefslogtreecommitdiffstats
path: root/pki/dogtag/ca-ui/shared/webapps
diff options
context:
space:
mode:
authorawnuk <awnuk@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2009-12-21 23:20:40 +0000
committerawnuk <awnuk@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2009-12-21 23:20:40 +0000
commit7316170c741d820d41e077d574158bd44884be88 (patch)
treed58b02b6fa1e94766c58b2d35561588feb45014e /pki/dogtag/ca-ui/shared/webapps
parent46c2516097e7c3bff41feade2d0b30347307c0ab (diff)
downloadpki-7316170c741d820d41e077d574158bd44884be88.tar.gz
pki-7316170c741d820d41e077d574158bd44884be88.tar.xz
pki-7316170c741d820d41e077d574158bd44884be88.zip
Fixed bugzilla bug #539773.
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@900 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/dogtag/ca-ui/shared/webapps')
-rw-r--r--pki/dogtag/ca-ui/shared/webapps/ca/agent/ca/ProfileProcess.template20
1 files changed, 18 insertions, 2 deletions
diff --git a/pki/dogtag/ca-ui/shared/webapps/ca/agent/ca/ProfileProcess.template b/pki/dogtag/ca-ui/shared/webapps/ca/agent/ca/ProfileProcess.template
index 5d9c5a051..70e7b2ae8 100644
--- a/pki/dogtag/ca-ui/shared/webapps/ca/agent/ca/ProfileProcess.template
+++ b/pki/dogtag/ca-ui/shared/webapps/ca/agent/ca/ProfileProcess.template
@@ -28,7 +28,9 @@ function addEscapes(str)
}
document.writeln('<font size="+1" face="PrimaSans BT, Verdana, sans-serif">Request ');
-document.writeln(requestId);
+if (typeof(requestId) != "undefined") {
+ document.writeln(requestId);
+}
document.writeln('<br></font>');
</script>
<font size="-1" face="PrimaSans BT, Verdana, sans-serif"></font>
@@ -44,6 +46,7 @@ document.writeln('<FONT size="-1" face="PrimaSans BT, Verdana, sans-serif">');
document.writeln('<b>Request Information:</b>');
document.writeln('</FONT>');
document.writeln('<table border=1 width=100%>');
+if (typeof(requestId) != "undefined") {
document.writeln('<tr>');
document.writeln('<td width=30%>');
document.writeln('<FONT size="-1" face="PrimaSans BT, Verdana, sans-serif">');
@@ -58,6 +61,8 @@ document.writeln('</FONT>');
document.writeln('</a>');
document.writeln('</td>');
document.writeln('</tr>');
+}
+if (typeof(requestType) != "undefined") {
document.writeln('<tr>');
document.writeln('<td>');
document.writeln('<FONT size="-1" face="PrimaSans BT, Verdana, sans-serif">');
@@ -70,6 +75,8 @@ document.writeln(requestType);
document.writeln('</FONT>');
document.writeln('</td>');
document.writeln('</tr>');
+}
+if (typeof(requestStatus) != "undefined") {
document.writeln('<tr>');
document.writeln('<td>');
document.writeln('<FONT size="-1" face="PrimaSans BT, Verdana, sans-serif">');
@@ -82,6 +89,8 @@ document.writeln(requestStatus);
document.writeln('</FONT>');
document.writeln('</td>');
document.writeln('</tr>');
+}
+if (typeof(profileId) != "undefined") {
document.writeln('<tr>');
document.writeln('<td>');
document.writeln('<FONT size="-1" face="PrimaSans BT, Verdana, sans-serif">');
@@ -94,6 +103,8 @@ document.writeln(profileId);
document.writeln('</FONT>');
document.writeln('</td>');
document.writeln('</tr>');
+}
+if (typeof(op) != "undefined") {
document.writeln('<tr>');
document.writeln('<td>');
document.writeln('<FONT size="-1" face="PrimaSans BT, Verdana, sans-serif">');
@@ -106,6 +117,8 @@ document.writeln(op);
document.writeln('</FONT>');
document.writeln('</td>');
document.writeln('</tr>');
+}
+if (typeof(errorCode) != "undefined") {
document.writeln('<tr>');
document.writeln('<td>');
document.writeln('<FONT size="-1" face="PrimaSans BT, Verdana, sans-serif">');
@@ -118,6 +131,8 @@ document.writeln(errorCode);
document.writeln('</FONT>');
document.writeln('</td>');
document.writeln('</tr>');
+}
+if (typeof(errorReason) != "undefined") {
document.writeln('<tr>');
document.writeln('<td>');
document.writeln('<FONT size="-1" face="PrimaSans BT, Verdana, sans-serif">');
@@ -130,10 +145,11 @@ document.writeln(errorReason);
document.writeln('</FONT>');
document.writeln('</td>');
document.writeln('</tr>');
+}
document.writeln('</table>');
document.writeln('<p>');
document.writeln('</table>');
-if (requestStatus == 'complete') {
+if (typeof(requestStatus) != "undefined" && requestStatus == 'complete') {
document.writeln('<table width=100%>');
for (var i = 0; i < outputListSet.length; i++) {
document.writeln('<tr valign=top>');