summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2012-07-25 01:58:51 +0200
committerMichael Tänzer <neo@nhng.de>2012-07-25 01:58:51 +0200
commit5a51a1a6d854e0cbc36c2ad1ff86f347f79e1c50 (patch)
tree82393e832fd05a4d5da7722c2fc8e3f04218d62d /www
parent726bac01737f960bc6c7b3fd0ba59223803279b0 (diff)
downloadcacert-devel-5a51a1a6d854e0cbc36c2ad1ff86f347f79e1c50.tar.gz
cacert-devel-5a51a1a6d854e0cbc36c2ad1ff86f347f79e1c50.tar.xz
cacert-devel-5a51a1a6d854e0cbc36c2ad1ff86f347f79e1c50.zip
bug 964: New error message if the user declines the dialogue. Also a little
bit of clean up Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'www')
-rw-r--r--www/keygenIE.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/www/keygenIE.js b/www/keygenIE.js
index e546f62..31baa25 100644
--- a/www/keygenIE.js
+++ b/www/keygenIE.js
@@ -65,6 +65,7 @@
var noActiveX = document.getElementById("noActiveX");
var generatingKeyNotice = document.getElementById("generatingKeyNotice");
var createRequestErrorChooseAlgorithm = document.getElementById("createRequestErrorChooseAlgorithm");
+ var createRequestErrorConfirmDialogue = document.getElementById("createRequestErrorConfirmDialogue");
var createRequestError = document.getElementById("createRequestError");
var invalidKeySizeError = document.getElementById("invalidKeySizeError");
var unsupportedPlatformError = document.getElementById("unsupportedPlatformError");
@@ -342,7 +343,6 @@
}
form.style.display = "";
- //algorithmParagraph.style.display = "none";
algorithm.disabled = true;
noActiveX.style.display = "none";
} catch (e) {
@@ -472,8 +472,6 @@
if (getStepSigKeyLength()) {
keySize.setAttribute("step", getStepSigKeyLength());
}
- //keySize.setAttribute("value", alg.DefaultLength);
- //keySize.value = ""+alg.DefaultLength;
// ugly, but buggy otherwise if done with text nodes
keySizeMin.innerHTML = getMinSigKeyLength();
@@ -534,7 +532,6 @@
}
return getAlgorithmList();
- //return getKeySizeLimits();
}
@@ -577,7 +574,11 @@
csr.value = cenroll.createPKCS10("", "1.3.6.1.5.5.7.3.2");
form.submit();
} catch (e) {
- showError(createRequestError.innerHTML, e);
+ if (e.number === -2147023673) {
+ showError(createRequestErrorConfirmDialogue.innerHTML, e);
+ } else {
+ showError(createRequestError.innerHTML, e);
+ }
}
generatingKeyNotice.style.display = "none";
@@ -604,7 +605,6 @@
securityLevel.onchange = refreshSecurityLevel;
provider.onchange = getAlgorithmList;
- //provider.onchange = getKeySizeLimits;
algorithm.onchange = getKeySizeLimits;
genReq.onclick = createCSR;