mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-09-12 17:52:13 +02:00
Unwanted changes have been removed.
This commit is contained in:
parent
0c0e148411
commit
a173be319f
@ -37,7 +37,7 @@ function setupFileInput(chooser) {
|
|||||||
const showUploads = chooser.getAttribute('data-bs-show-uploads') === "true";
|
const showUploads = chooser.getAttribute('data-bs-show-uploads') === "true";
|
||||||
|
|
||||||
let inputContainer = document.getElementById(inputContainerId);
|
let inputContainer = document.getElementById(inputContainerId);
|
||||||
let fileInput = document.getElementById(elementId);
|
const input = document.getElementById(elementId);
|
||||||
|
|
||||||
if (inputContainer.id === 'pdf-upload-input-container') {
|
if (inputContainer.id === 'pdf-upload-input-container') {
|
||||||
inputContainer.querySelector('#dragAndDrop').innerHTML = window.fileInput.dragAndDropPDF;
|
inputContainer.querySelector('#dragAndDrop').innerHTML = window.fileInput.dragAndDropPDF;
|
||||||
@ -59,7 +59,7 @@ function setupFileInput(chooser) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Handle form validation if the input is left empty
|
// Handle form validation if the input is left empty
|
||||||
fileInput.addEventListener("invalid", (e) => {
|
input.addEventListener("invalid", (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
alert(pdfPrompt);
|
alert(pdfPrompt);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user