summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2012-07-25 01:14:21 +0200
committerMichael Tänzer <neo@nhng.de>2012-07-25 01:14:21 +0200
commit726bac01737f960bc6c7b3fd0ba59223803279b0 (patch)
tree9837d0e9c269c8df5d9b8a708ecc286eb85d1582
parent15921f97db3990d7add6f6509f02c39e04e2b08c (diff)
downloadcacert-devel-726bac01737f960bc6c7b3fd0ba59223803279b0.tar.gz
cacert-devel-726bac01737f960bc6c7b3fd0ba59223803279b0.tar.xz
cacert-devel-726bac01737f960bc6c7b3fd0ba59223803279b0.zip
bug 964: Usability improvement: if there's only one keysize to select, pre-fill
the key size field. Signed-off-by: Michael Tänzer <neo@nhng.de>
-rw-r--r--www/keygenIE.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/www/keygenIE.js b/www/keygenIE.js
index f25e6db..e546f62 100644
--- a/www/keygenIE.js
+++ b/www/keygenIE.js
@@ -480,6 +480,10 @@
keySizeMax.innerHTML = getMaxSigKeyLength();
keySizeStep.innerHTML = getStepSigKeyLength();
+ if (getMinSigKeyLength() === getMaxSigKeyLength()) {
+ keySize.value = getMaxSigKeyLength();
+ }
+
return true;
}