Make WordPress Core

Opened 15 years ago

Closed 10 years ago

Last modified 10 years ago

#6541 closed enhancement (fixed)

Shift-click to select a range of checkboxes

Reported by: mdawaffe's profile mdawaffe Owned by: mdawaffe's profile mdawaffe
Milestone: 2.6 Priority: normal
Severity: normal Version: 2.5
Component: General Keywords: has-patch 2nd-opinion
Focuses: Cc:

Description

Everyone loves how you can click a checkbox in gmail and then shift click another checkbox farther down the line to select all the checkboxes in between.

We have the power to do that in WordPress too.

Attached:

  1. Naively checks (or unchecks) all checkboxes between your last click and a shift click.
  2. Gets rid of some JS functions that are never used in core.
  3. checkAll maintains its (strange?) behavior of toggling each individual checkbox rather than checking or unchecking all checkboxes.
  4. Gets rid of some inline JS.

Caveat: The JS is not very generic. It's written to work with the markup used in WP.

Attachments (2)

6541.diff (7.7 KB) - added by mdawaffe 15 years ago.
shiftcheckbox.diff (4.4 KB) - added by sillybean 10 years ago.
restores ability to select consecutive checkboxes by shift-clicking

Download all attachments as: .zip

Change History (6)

@mdawaffe
15 years ago

#1 @mdawaffe
15 years ago

  • Owner changed from anonymous to mdawaffe
  • Status changed from new to assigned

#2 @ryan
15 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [7745]) Shift-click to select a range of checkboxes. Props mdawaffe. fixes #6541 for trunk

@sillybean
10 years ago

restores ability to select consecutive checkboxes by shift-clicking

#3 @sillybean
10 years ago

  • Cc steph@… added
  • Resolution fixed deleted
  • Status changed from closed to reopened

This broke some time ago. Patch restores the functionality using the jQuery shiftcheckbox plugin.

#4 @scribu
10 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

This ticket was closed 5 years ago.

Please open a new ticket and post your patch there.

Version 0, edited 10 years ago by scribu (next)
Note: See TracTickets for help on using tickets.