Details
-
Type: Improvement
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: None
-
Fix Version/s: 1.1
-
Component/s: None
-
Labels:None
Description
This function currently is setup to only work with the Selector rows/checkboxes. Generalize it so it can be used for any set of checkboxes - contained in any type of block display element (e.g. <tr>, <div>, <tt>, <dt> etc.).
One approach is to pass in the block ID prefix as a param. Then, the function can either append or remove the string ' selected' to the className. If this is too messy, we could standardize on the class name variants currently used (even-row, even-row selected, etc.)
Once generalized, please implement for Edit Tags for a Contact (contact/view/tag) and work w/ Manish to update civicrm.css to handle display of selected div's.