1
0
mirror of https://github.com/24eme/signaturepdf.git synced 2023-08-25 09:33:08 +02:00

[Organization] Buttons to drag here near the page to drag are hidden

This commit is contained in:
Vincent LAURENT 2022-10-09 00:25:41 +02:00
parent ccf0afd5e2
commit a848163e2d

View File

@ -316,8 +316,6 @@ var getFilesStats = function() {
} }
}); });
console.log(files);
return files; return files;
} }
@ -466,6 +464,12 @@ var updatePageState = function(page) {
page.querySelector('.btn-drag-here-left').classList.remove('d-none'); page.querySelector('.btn-drag-here-left').classList.remove('d-none');
page.querySelector('.btn-drag-here-right').classList.remove('d-none'); page.querySelector('.btn-drag-here-right').classList.remove('d-none');
} }
if(page.previousSibling && page.previousSibling.draggable && isPageDragged(page.previousSibling) && isDraggedMode()) {
page.querySelector('.btn-drag-here-left').classList.add('d-none');
}
if(page.nextSibling && page.nextSibling.draggable && isPageDragged(page.nextSibling) && isDraggedMode()) {
page.querySelector('.btn-drag-here-right').classList.add('d-none');
}
} }
var updateFilesState = function() { var updateFilesState = function() {
@ -585,7 +589,6 @@ var createEventsListener = function() {
document.getElementById('save').click(); document.getElementById('save').click();
}); });
document.getElementById('input_pdf_upload_2').addEventListener('change', async function(event) { document.getElementById('input_pdf_upload_2').addEventListener('change', async function(event) {
console.log(this.files.length);
for (let i = 0; i < this.files.length; i++) { for (let i = 0; i < this.files.length; i++) {
if(this.files[i].size > maxSize) { if(this.files[i].size > maxSize) {