News:

Dear forum visitors, if the support forum is not available, please try again a few minutes later. Thanks!

Main Menu
Support-Forum

"Select all files" no longer works - Layout "Compact Files layout with Checkboxes 3.9"

Started by LinaG, 04.05.2026 17:42:51

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

LinaG

Hi Arno,
Thank you for the screenshot. I notice in your demo the layout looks different from mine.
I tested all three checkbox layouts available in jDownloads 4.1.4:

Compact Files Layout with Checkboxes v3.9
Standard Files Layout with Checkboxes v3.9
Standard Bootstrap 5 Files Layout - Minimal Compact with Checkboxes v4.1

In all three cases, the "Select all files" button appears at the top of the list (not the bottom as in your demo), and clicking it does not select any files — it only changes its own appearance.
Could you please verify if the fix in 4.1.4 covers these layouts as well?
I also checked my Content-Security-Policy headers and they only contain frame-ancestors 'self' — so CSP is not blocking inline JavaScript in my case.
Environment: Joomla 6.1.0 + PHP 8.5 + jDownloads 4.1.4.
Thank you!
Lina

  •  

ColinM

Hi
I am still having the same problem as LinaG.  I have cleared my browser cache.
ColinM
Colin M
  •  

Arno

Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

ColinM

The Select all files tick box is not working. Have tried with layouts:
Compact Files Layout with Checkboxes v3.9
Standard Files Layout with Checkboxes v3.9
Standard Bootstrap 5 Files Layout - Minimal Compact with Checkboxes v4.1

Using Joomla 6.1.0 and jDownloads 4.1.4 Stable (15-05-2026)
Aware that it does work on the Test Site
ColinM
Colin M
  •  

Arno

Hi,
The fact that it works on jd40 suggests that it's running on a 'clean' installation without any legacy issues or overrides, and that the checkbox logic is therefore working as expected.

Please check that you have also enabled the correct category layout. That is where the main checkbox is displayed. See screenshot.

To quickly narrow down affected installations, please check these point:
- Check in the browser DevTools which JavaScript file is actually being loaded (including path and modification time/cache status). 
you can post the results of these point here (include a short screenshot from DevTools). We can then pinpoint exactly where your installation differs.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

LinaG

Hi,

I performed the requested checks.

Environment

Joomla 6.1.2
jDownloads 4.1.4
PHP 8.5.2 (PHP-FPM)
Apache

Originally I was using the Compact Files Layout with Checkboxes 3.9.

To rule out a layout-specific issue, I changed the category to use the Standard Bootstrap 5 Files Layout – Minimal Compact with Checkboxes v4.1.

The result is exactly the same with both layouts:

The "Select all files" checkbox is displayed.
The individual file checkboxes are displayed.
Clicking "Select all files" does not select any file.
Calling checkAlle(2,19) manually from the browser console also does not select any checkboxes and produces no JavaScript error.

I also verified in the browser DevTools that:

typeof checkAlle returns "function".
typeof istChecked returns "function".
The form down19 exists (document.forms.down19).
The file checkboxes (cb_arr[]) are present.
The checkAlle() function is loaded from:
/components/com_jdownloads/assets/js/jdownloads.js

I have attached a DevTools screenshot showing that the checkAlle() function is loaded from /components/com_jdownloads/assets/js/jdownloads.js.

As a temporary workaround, I added my own JavaScript in the Use After Layout field using addEventListener(). With this workaround, both "Select all files" and the individual checkboxes work correctly, and the ZIP download also works correctly.

So the behaviour appears to be independent of the layout, as I can reproduce it with both the legacy checkbox layout and the Bootstrap 5 checkbox layout.

Thank you.
Lina
  •  

Arno

Hi Lina,
thanks again for your feedback.

We have prepared a test fix for the "Select all / Mark all" issue. 
The fix now supports both layout variants (older and newer structure), so it should work even if layout positions differ.

Could you please test this build in:
1. Category view
2. My Downloads view

Expected result:
1. "Mark all" selects all file checkboxes
2. Clicking again unselects all
3. No JavaScript errors in browser console

If possible, please test once with your current setup and once without jDownloads template overrides, then let us know both results.
Please note that this release is an unofficial pre-release version.

Thanks a lot for helping us verify this quickly.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

LinaG

Hi Arno,

I tested the new 4.1.6 pre-release in my local environment:
  • Joomla 6.1.2
  • PHP 8.5.5 (PHP-FPM)
  • Apache 2.4.66

Category view

I tested both:
  • Compact Files Layout with Checkboxes v3.9
  • Standard Bootstrap 5 Files Layout – Minimal Compact with Checkboxes v4.1

In both layouts the fix works correctly:
  • "Select all" selects all file checkboxes.
  • Clicking again unselects all.
  • Individual checkboxes work correctly.
  • No JavaScript errors appear in the browser console.

My Downloads view

I also created menu items for List my Downloads and List All Downloads.

Both views display the download list correctly, but they do not display a "Select all files" checkbox, nor do they provide a menu option to select a checkbox layout. Therefore I could not test the new "Select all" functionality in those views.

I also confirmed that my Joomla installation does not contain any jDownloads template overrides.

Best regards,
Lina
  •  
    The following users thanked this post: Arno

Arno

Hi Lina,
thank you for your findings.

That means your problem is finally sorted.

There shouldn't be any tick boxes in the 'My Downloads' view at all, as they're unnecessary there.  ;)
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  
    The following users thanked this post: LinaG