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

[Organization] The download full PDF button is disabled when pages are selected

This commit is contained in:
Vincent LAURENT 2022-12-07 01:48:36 +01:00
parent 1eb0f5101b
commit 5a4309fcf3
2 changed files with 3 additions and 1 deletions

View File

@ -517,6 +517,7 @@ var updateGlobalState = function() {
document.querySelector('#top_bar_action_selection').classList.add('d-none'); document.querySelector('#top_bar_action_selection').classList.add('d-none');
document.querySelector('#bottom_bar_action').classList.remove('d-none'); document.querySelector('#bottom_bar_action').classList.remove('d-none');
document.querySelector('#bottom_bar_action_selection').classList.add('d-none'); document.querySelector('#bottom_bar_action_selection').classList.add('d-none');
document.querySelector('#save').removeAttribute('disabled');
if(isSelectionMode()) { if(isSelectionMode()) {
document.querySelector('#container_btn_select .card-header span').innerText = document.querySelectorAll('.canvas-container .input-select:checked').length; document.querySelector('#container_btn_select .card-header span').innerText = document.querySelectorAll('.canvas-container .input-select:checked').length;
@ -538,6 +539,7 @@ var updateGlobalState = function() {
document.querySelector('#top_bar_action').classList.add('d-none'); document.querySelector('#top_bar_action').classList.add('d-none');
document.querySelector('#bottom_bar_action_selection').classList.remove('d-none'); document.querySelector('#bottom_bar_action_selection').classList.remove('d-none');
document.querySelector('#bottom_bar_action').classList.add('d-none'); document.querySelector('#bottom_bar_action').classList.add('d-none');
document.querySelector('#save').setAttribute('disabled', 'disabled');
} }
if(isDraggedMode()) { if(isDraggedMode()) {
document.querySelector('#modalDrag .modal-body').insertAdjacentElement('afterbegin', document.querySelector('#container-pages')); document.querySelector('#modalDrag .modal-body').insertAdjacentElement('afterbegin', document.querySelector('#container-pages'));

View File

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