mirror of
https://github.com/24eme/signaturepdf.git
synced 2023-08-25 09:33:08 +02:00
[Organization] If selection mode it will not active hover action page buttons
This commit is contained in:
parent
a04123b846
commit
9cbf0107a2
@ -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