mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-09-12 17:52:13 +02:00
fix warning about JS syntax
This commit is contained in:
parent
e31f58e486
commit
f8023f0348
@ -78,11 +78,12 @@
|
|||||||
const pdfOnlyOptions = document.getElementById('pdfOnlyOptions');
|
const pdfOnlyOptions = document.getElementById('pdfOnlyOptions');
|
||||||
const submitBtn = document.getElementById('submitBtn');
|
const submitBtn = document.getElementById('submitBtn');
|
||||||
const submitText = /*[[#{EMLToPDF.submit}]]*/ 'Convert to PDF';
|
const submitText = /*[[#{EMLToPDF.submit}]]*/ 'Convert to PDF';
|
||||||
|
const downloadHtmlText = 'Download HTML intermediate file instead of PDF';
|
||||||
|
|
||||||
function updateFormState() {
|
function updateFormState() {
|
||||||
if (pdfOnlyOptions && submitBtn) {
|
if (pdfOnlyOptions && submitBtn) {
|
||||||
pdfOnlyOptions.style.display = downloadHtml.checked ? 'none' : 'block';
|
pdfOnlyOptions.style.display = downloadHtml.checked ? 'none' : 'block';
|
||||||
submitBtn.textContent = downloadHtml.checked ? /*[[#{EMLToPDF.downloadHtml}]]*/ 'Download HTML' : submitText;
|
submitBtn.textContent = downloadHtml.checked ? downloadHtmlText : submitText;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user