Skip to content

Commit

Permalink
Merge pull request #111 from veraPDF/bugfix/download-btn
Browse files Browse the repository at this point in the history
Disabled "Download" button if the report has not been validated yet
  • Loading branch information
daryaromanchuk authored Sep 1, 2023
2 parents a7abff0 + 34fba6c commit a922089
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/main/resources/assets/css/verapdf.css
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ table {

#configure-validator-header, #result-details {
overflow-wrap: anywhere;
color: #707070;
font-style: italic;
font-weight: 600;
font-size: 0.95em;
}
3 changes: 2 additions & 1 deletion src/main/resources/assets/js/verapdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ $(document).ready(function () {
$target.show()
$target.find('input:eq(0)').focus()
}
$('#download-results-btn').hide();
})

allNextBtn.click(function () {
Expand Down Expand Up @@ -155,7 +156,7 @@ function callVeraPdfService () {
var spinHtml = $('#spinner-template').html()
$('#results').html(spinHtml)
pdfaValidator.validate(formData, flavour, function () {
$.when(renderResult()).then(showDownloadBtn());
$.when(renderResult()).done(showDownloadBtn());
}, outputFormat)
}

Expand Down

0 comments on commit a922089

Please sign in to comment.