Closed (fixed)
Project:
Checkall
Version:
6.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Jan 2010 at 12:11 UTC
Updated:
24 Jan 2010 at 12:30 UTC
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
Comment #1
markus_petrux commentedI 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.