mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-09-12 17:52:13 +02:00
Bug Fix
Selected Pages were not being deselected after Page Select is turned off
This commit is contained in:
parent
18b1d1178a
commit
d64fec090f
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user