From 5a4309fcf37c856c9fdb3e28976a1e2ad299d2e3 Mon Sep 17 00:00:00 2001 From: Vincent LAURENT Date: Wed, 7 Dec 2022 01:48:36 +0100 Subject: [PATCH] [Organization] The download full PDF button is disabled when pages are selected --- public/js/organization.js | 2 ++ templates/organization.html.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/public/js/organization.js b/public/js/organization.js index cd9140c..669a980 100644 --- a/public/js/organization.js +++ b/public/js/organization.js @@ -517,6 +517,7 @@ var updateGlobalState = function() { document.querySelector('#top_bar_action_selection').classList.add('d-none'); document.querySelector('#bottom_bar_action').classList.remove('d-none'); document.querySelector('#bottom_bar_action_selection').classList.add('d-none'); + document.querySelector('#save').removeAttribute('disabled'); if(isSelectionMode()) { 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('#bottom_bar_action_selection').classList.remove('d-none'); document.querySelector('#bottom_bar_action').classList.add('d-none'); + document.querySelector('#save').setAttribute('disabled', 'disabled'); } if(isDraggedMode()) { document.querySelector('#modalDrag .modal-body').insertAdjacentElement('afterbegin', document.querySelector('#container-pages')); diff --git a/templates/organization.html.php b/templates/organization.html.php index 73f8ec5..fd9856f 100644 --- a/templates/organization.html.php +++ b/templates/organization.html.php @@ -152,6 +152,6 @@ - + \ No newline at end of file