1
0
mirror of https://github.com/Stirling-Tools/Stirling-PDF.git synced 2024-11-10 18:00:11 +01:00

Changed <br> to get a consistent overlay-pdf form (#1849)

Repaired the overlay-pdfs.counts.label to be displayed and not deleted on change
This commit is contained in:
Tim 2024-09-09 19:58:35 +02:00 committed by GitHub
parent 0ad8c635ad
commit f256e8f029
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,7 +33,6 @@
<option value="0" th:text="#{overlay-pdfs.position.foreground}">Foreground</option>
<option value="1" th:text="#{overlay-pdfs.position.background}">Background</option>
</select>
<br>
<div id="countsContainer" style="display: none;">
<label th:text="#{overlay-pdfs.counts.label}">Overlay Counts</label>
<!-- Inputs for counts will be dynamically added here -->
@ -57,7 +56,11 @@
console.log("files",files);
if(files) {
const fileCount = files.length;
countsContainer.appendChild(document.createElement("br"));
const label = document.createElement('label');
label.setAttribute('th:text', '#{overlay-pdfs.counts.label}');
label.textContent = "Overlay Counts";
countsContainer.appendChild(label);
for (let i = 0; i < fileCount; i++) {
const input = document.createElement('input');
input.type = 'text';