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

Merge branch 'master' of github.com:24eme/signaturepdf

This commit is contained in:
Gabriel Poma 2022-10-21 17:57:47 +02:00
commit 50ed5b5973
2 changed files with 8 additions and 2 deletions

View File

@ -131,6 +131,9 @@ var loadPDF = async function(pdfBlob, filename, pdfIndex) {
if(isDraggedMode()) {
return false;
}
if(isSelectionMode()) {
return false;
}
this.querySelector('.container-resize').classList.add('d-none');
this.querySelector('.canvas-pdf').classList.add('shadow-lg');
this.querySelector('.canvas-pdf').style.border = '2px dashed #777';
@ -441,10 +444,13 @@ var updatePageState = function(page) {
page.querySelector('.page-title').classList.remove('d-none');
page.classList.add('border-secondary', 'bg-secondary');
page.classList.remove('border-transparent', 'bg-transparent');
page.querySelector('.btn-select').classList.remove('d-none')
}
if(isPageHover(page) && !isPageDeleted(page) && !isPageDragged(page) && !isPageSelected(page) && !isDraggedMode() && !isSelectionMode()) {
page.querySelector('.btn-rotate').classList.remove('d-none');
page.querySelector('.btn-download').classList.remove('d-none');
page.querySelector('.btn-delete').classList.remove('d-none');
page.querySelector('.btn-select').classList.remove('d-none')
page.querySelector('.btn-drag').classList.remove('d-none');
}

View File

@ -152,6 +152,6 @@
<script>
var maxSize = <?php echo $maxSize ?>;
</script>
<script src="/js/organization.js?202210170048"></script>
<script src="/js/organization.js?2022101800002"></script>
</body>
</html>