mirror of
https://github.com/24eme/signaturepdf
synced 2024-06-29 19:01:02 +02:00
Fix alert message pdf file size
This commit is contained in:
parent
b5a1115cd4
commit
6f8f20ea08
|
@ -168,7 +168,7 @@ var pageUpload = async function() {
|
||||||
document.getElementById('input_pdf_upload').addEventListener('change', async function(event) {
|
document.getElementById('input_pdf_upload').addEventListener('change', async function(event) {
|
||||||
if(document.getElementById('input_pdf_upload').files[0].size > maxSize) {
|
if(document.getElementById('input_pdf_upload').files[0].size > maxSize) {
|
||||||
|
|
||||||
alert("Le PDF ne doit pas dépasser <?php echo round($maxSize / 1024 / 1024) ?> Mo");
|
alert("Le PDF ne doit pas dépasser " + Math.round(maxSize/1024/1024) + " Mo");
|
||||||
document.getElementById('input_pdf_upload').value = "";
|
document.getElementById('input_pdf_upload').value = "";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -914,7 +914,7 @@ var pageUpload = async function() {
|
||||||
document.getElementById('input_pdf_upload').addEventListener('change', async function(event) {
|
document.getElementById('input_pdf_upload').addEventListener('change', async function(event) {
|
||||||
if(document.getElementById('input_pdf_upload').files[0].size > maxSize) {
|
if(document.getElementById('input_pdf_upload').files[0].size > maxSize) {
|
||||||
|
|
||||||
alert("Le PDF ne doit pas dépasser <?php echo round($maxSize / 1024 / 1024) ?> Mo");
|
alert("Le PDF ne doit pas dépasser " + Math.round(maxSize/1024/1024) + " Mo");s
|
||||||
document.getElementById('input_pdf_upload').value = "";
|
document.getElementById('input_pdf_upload').value = "";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue