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:
commit
50ed5b5973
@ -131,6 +131,9 @@ var loadPDF = async function(pdfBlob, filename, pdfIndex) {
|
|||||||
if(isDraggedMode()) {
|
if(isDraggedMode()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if(isSelectionMode()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
this.querySelector('.container-resize').classList.add('d-none');
|
this.querySelector('.container-resize').classList.add('d-none');
|
||||||
this.querySelector('.canvas-pdf').classList.add('shadow-lg');
|
this.querySelector('.canvas-pdf').classList.add('shadow-lg');
|
||||||
this.querySelector('.canvas-pdf').style.border = '2px dashed #777';
|
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.querySelector('.page-title').classList.remove('d-none');
|
||||||
page.classList.add('border-secondary', 'bg-secondary');
|
page.classList.add('border-secondary', 'bg-secondary');
|
||||||
page.classList.remove('border-transparent', 'bg-transparent');
|
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-rotate').classList.remove('d-none');
|
||||||
page.querySelector('.btn-download').classList.remove('d-none');
|
page.querySelector('.btn-download').classList.remove('d-none');
|
||||||
page.querySelector('.btn-delete').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');
|
page.querySelector('.btn-drag').classList.remove('d-none');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -152,6 +152,6 @@
|
|||||||
<script>
|
<script>
|
||||||
var maxSize = <?php echo $maxSize ?>;
|
var maxSize = <?php echo $maxSize ?>;
|
||||||
</script>
|
</script>
|
||||||
<script src="/js/organization.js?202210170048"></script>
|
<script src="/js/organization.js?2022101800002"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue
Block a user