removed commented out code and old cruft

master
Tim Bazuin 5 years ago
parent 9436218561
commit d386e0a520

@ -22,9 +22,6 @@ $(function () {
function handleKeyFile(element) { function handleKeyFile(element) {
keyFileContent = element.target.result; keyFileContent = element.target.result;
console.log(keyFileContent);
// TODO: Add keyfile to embedded server config using forge
} }
// Retrieve zip file with post // Retrieve zip file with post
@ -33,7 +30,6 @@ $(function () {
}); });
function handleZipResult(data) { function handleZipResult(data) {
//var blob = new Blob(data, {type: 'application/zip'});
var blobUrl = URL.createObjectURL(data); var blobUrl = URL.createObjectURL(data);
saveBlobUrl(blobUrl, 'config.zip'); saveBlobUrl(blobUrl, 'config.zip');
} }
@ -121,11 +117,6 @@ $(function () {
buildConfigZip.on('click', submitCertificateForm); buildConfigZip.on('click', submitCertificateForm);
// Load content of embedded server config
// Put keyfile content in embedded server config if it is not null
// If the decrypt key checkbox is checked, attempt to decrypt the private key in the embedded server config
// Offer the decrypted server config up as a file
keyLocationContainer.on('show', function () { keyLocationContainer.on('show', function () {
decryptKeyCheckboxContainer.show(); decryptKeyCheckboxContainer.show();
}); });

@ -36,8 +36,6 @@
</div> </div>
</form> </form>
<!-- TODO: Check data attribute to see if the cert is present -->
<!-- If cert is not on server, also ask for this -->
<div class="row" style="display: none"> <div class="row" style="display: none">
<label for="key-location">Select key file</label> <label for="key-location">Select key file</label>
<input type="file" id="key-location" name="key-location"> <input type="file" id="key-location" name="key-location">

Loading…
Cancel
Save