Opened 15 years ago
Closed 15 years ago
#11697 closed (fixed)
Select multiple action checkboxes with shift+mouseclick in django admin (like in gmail)
Reported by: | Yuri Baburov | Owned by: | Yuri Baburov |
---|---|---|---|
Component: | contrib.admin | Version: | 1.1 |
Severity: | Keywords: | admin actions shift select gmail | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Solution is described here: http://stackoverflow.com/questions/659508/how-can-i-shift-select-multiple-checkboxes-like-gmail
It needs to be adopted into django admin's action_checkbox field and actions.js script.
I'll create a patch asap, or someone else might want to do this.
Attachments (3)
Change History (10)
comment:1 by , 15 years ago
Triage Stage: | Unreviewed → Accepted |
---|
by , 15 years ago
Attachment: | shift-check-multi.diff added |
---|
comment:2 by , 15 years ago
Noticed a couple of things playing with this on Ubuntu/Firefox. First, if I happen to hold down shift for the first thing I check, every item from there to the bottom gets selected. I found that surprising. Second the x of y objects selected isn't matching reality when a range is selected. It seems to be counting all the items selected via a shift-click as just one.
comment:3 by , 15 years ago
Tested with IE8 and Chrome on Windows also. Both also show the behavior of selecting every item to the bottom of the list if shift is held for the first click. Oddly, IE8 counts properly, always reporting how many items are actually selected. Chrome is behaving like Firefox and seeming to count only one item when a shift-click selects multiple.
comment:4 by , 15 years ago
Maby combining the two events into one (Actions.counter() and checking for shift-clicking) might negate the the problems with the x of y objects.
by , 15 years ago
Attachment: | shift-check-multi-2.diff added |
---|
Fixes the x of y and the shift-click the first item issue
by , 15 years ago
Attachment: | shift-check-multi-3.diff added |
---|
this patch will automatically select/deselect the check all if you select all with shift-click
comment:5 by , 15 years ago
Works great for me in Firefox 3.0 on Ubuntu, and on WinXP VM: FF 3.5, Opera 10.10, Safari 3.0.3, Chrome 3.0.195.38, and IE 8.
comment:6 by , 15 years ago
Has patch: | set |
---|
comment:7 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This adds support for shift-clicking checkboxes to select items in a range