Needs work
Project:
Team Notifications
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Mar 2009 at 23:26 UTC
Updated:
11 Jan 2010 at 15:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
Rosamunda commentedMeybe instead of "all checked by default" it could have a checkbox that allows to "check them all"?
Comment #2
cfennell commentedI needed a "checkall" option for a project that I'm working on. Here's an untested patch that does something similar; I'm sure the JS could be golfed a bit.
Comment #3
cfennell commentedJust occurred to me that I was focused only on node forms, so my selector was a bit too specific. Changed that...
Comment #4
cfennell commentedOk, this is obviously a work in progress ;^), I don't update the hidden form value to reflect the checkall action in the above patches - I'll post something when I've done that.
Comment #5
cfennell commentedOk, now the hidden "edit-notifications-team-selected" form element is updated when checkall is triggered. I also adopted some of the coding conventions of the module maintainer and was reminded of JQuery's "removeClass/addClass" functions as well, very handy. Anyway, it looks like this is going to work for my little project. Good luck on yours.
Comment #6
cfennell commentedChanging the status - not saying this should go in as-is, but some form of a "check all" feature would be great. Thanks.
Comment #7
David Goode commentedHey all, I'll look at this shortly.
David
Comment #8
saveriuccio commented@libsys,
I've just applied your patch and seems isn't working fine for me.. I'm really really interested on this feature.
Any suggestion?
Comment #9
David Goode commentedHey! I found a bit of a bug where it can add duplicate numbers/not remove items from the hidden form entry upon unchecking "check all." I fixed that by making the code simpler & just reusing the existing click() method. At this point I think the JS is fine, the only thing I'd like to see before committing this might be an option on the settings page for showing the check all button -- for now you could just make it a sitewide variable like the # of checkboxes setting. That settings page looked a little empty anyways :-). I'd disable it by default so people don't get any surprise functionality upon upgrading--otherwise known as bugs :-) Once that's done I'd be happy to commit, thanks for the work so far!
David
Comment #10
David Goode commentedOh, also might be nice if you added a handler so that when everything was checked manually, check all would get checked automatically. That might be confusing though...either way, not required to be committed, but something to think about.
David