bug 964: Usability improvement: if there's only one keysize to select, pre-fill
authorMichael Tänzer <neo@nhng.de>
Tue, 24 Jul 2012 23:14:21 +0000 (01:14 +0200)
committerMichael Tänzer <neo@nhng.de>
Tue, 24 Jul 2012 23:14:21 +0000 (01:14 +0200)
the key size field.

Signed-off-by: Michael Tänzer <neo@nhng.de>
www/keygenIE.js

index f25e6db..e546f62 100644 (file)
                        keySizeMax.innerHTML = getMaxSigKeyLength();
                        keySizeStep.innerHTML = getStepSigKeyLength();
                        
+                       if (getMinSigKeyLength() === getMaxSigKeyLength()) {
+                               keySize.value = getMaxSigKeyLength();
+                       }
+                       
                        return true;
                }