Selected Pages were not being deselected after Page Select is turned off
This commit is contained in:
JoseQuintas2021 2025-04-22 23:19:28 +01:00
parent 18b1d1178a
commit d64fec090f

View File

@ -892,6 +892,14 @@ class PdfContainer {
{
this.showButton(document.getElementById('deselect-All-Container'), false);
this.showButton(document.getElementById('select-All-Container'), false);
// Uncheck all checkboxes and clear selected pages
const allCheckboxes = document.querySelectorAll('.pdf-actions_checkbox');
allCheckboxes.forEach((checkbox) => {
checkbox.checked = false;
});
window.selectedPages = [];
this.updateSelectedPagesDisplay();
}
else{
const allCheckboxes = document.querySelectorAll('.pdf-actions_checkbox');