Skip to main content

Search and Top Navigation

#4205 closed feature (duplicate)

Opened February 21, 2009 12:33PM UTC

Closed February 05, 2013 05:43PM UTC

Selectable: Unselecting selecting elements (+ sortables no conflict)

Reported by: rudasn Owned by:
Priority: minor Milestone: 2.0.0
Component: ui.selectable Version: 1.6rc6
Keywords: selectable, sortable, no conflict Cc:
Blocked by: Blocking:
Description

When I click on (or drag over) an unselected element it is selected.

So I would expect that doing the same action on a selected element it will be unselected. In this way, if I select multiple elements and realise that the one in the middle is not what I wanted I can click on it and deselect it. Likewise, if I have a large list of items and I want to select all but a few, I can select those few first and then select them all (which would deselect the few previously selected elements).

I find this kind of behaviour more intuitive and more practical. What do you guys think?

I've implemented this functionality, along with a 'noConflict' option so that selectables works with sortables, in this demo:

http://nicolas.rudas.info/jquery/selectables_sortables/

Changes are attached here but also found in the link above.

Attachments (1)
  • jquery.mouse.sort.select-edited.js (50.9 KB) - added by rudasn February 21, 2009 12:34PM UTC.

    Changes to mouse, selectable, sortable methods to accommodate unselect and no conflict

Change History (8)

Changed February 21, 2009 12:44PM UTC by rudasn comment:1

Forgot to mention that I haven't really tested this and if it plays nicely with the rest of the plugins or ui core. However, the changes made are quite specific to selectables and sortables so I assume it would be ok.

Changed April 02, 2009 01:18PM UTC by ajacksified comment:2

Awesome idea (also takes care of ticket #2946 http://dev.jqueryui.com/ticket/2946). A side note- it doesn't work in Chrome, if you weren't aware already.

Changed May 07, 2009 12:46PM UTC by jzaefferer comment:3

milestone: TBD1.8

Needs testing.

Changed December 02, 2009 01:36PM UTC by friflaj comment:4

Has this been merged in 1.8a1? How do I use it?

Changed December 05, 2009 04:12PM UTC by Sam Hasler comment:5

It doesn't work in IE8 either.

Changed October 11, 2012 02:52PM UTC by scottgonzalez comment:6

milestone: 1.9.02.0.0

Changed November 05, 2012 09:47AM UTC by jzaefferer comment:7

status: newopen

Consider for redesign.

Changed February 05, 2013 05:43PM UTC by scottgonzalez comment:8

resolution: → duplicate
status: openclosed
summary: Selectables: Unselecting selecting elements (+ sortables no conflict)Selectable: Unselecting selecting elements (+ sortables no conflict)

Duplicate of #2946.