Hello,

Thank you first for creating this module that allows the 'Check All / Toggle / Uncheck All' feature. Very cool!

I was wondering if it would be possible to give options to only show 'Check All / Uncheck all' or only show 'Toggle' or show all features 'Check All / Toggle / Uncheck All'.

Or If someone may provide instructions on doing this manually it would be appreciated.

Thank you!

Comments

markus_petrux’s picture

Category: feature » support
Status: Active » Fixed

I cannot see how we can extend the Checkall API to do this (without breaking existing sites). On the other hand, this could be easily done from a helper module. So, I'm switching this issue to support request.

Such a module would have to be loaded after Checkall, using a weight in the {system} table higher than the one used by Checkall. This module needs to implement a small javascript file that executes a Drupal.behavior that's able to alter the DOM elements generated by Checkall. These DOM elements are wrapped into a DIV element with the CSS class "checkall-action", and simply contains A and SPAN elements for the "Check all / Toggle / Uncheckall" options. This should help you write the proper jQuery selector to remove the elements that you do not wish.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.