Skip to main content

Search and Top Navigation

#4389 closed enhancement (worksforme)

Opened March 22, 2009 07:56AM UTC

Closed January 05, 2011 02:43PM UTC

slider should pass information about which handle triggered an event

Reported by: vitch Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.slider Version: 1.7.1
Keywords: events Cc:
Blocked by: Blocking:
Description

In my application it is necessary to know which handle was changed to cause a slide or slidechange event. I could figure it out in my code but it seems that it is easy enough to include in the plugin so I'd like to suggest that it is included.

Patch of necessary changes attached...

Attachments (1)
  • ui.slider.4389.diff (1.6 KB) - added by vitch March 22, 2009 07:57AM UTC.

    Patch showing proposed changes...

Change History (5)

Changed March 22, 2009 07:58AM UTC by vitch comment:1

Just to add that I'm not very familiar with jQuery UI in general yet so if there is a good reason for not including this change (e.g. for consistency or conceptual reasons) then I'm fine to work around it. It just seems useful from my short experience...

Changed May 07, 2009 12:51PM UTC by jzaefferer comment:2

milestone: TBD1.8

Proposed enhancement makes sense, as the information isn't easily available in other ways.

Patch needs testing.

Changed August 13, 2009 04:40PM UTC by machineghost comment:3

Stupid question: why not just pass the handle itself?

handle: this.handles[index],

Or pass both the handle and the index?

Changed January 05, 2011 02:35PM UTC by urkle comment:4

This information is passed to the handler in the ui.handle property..

Here is an example using jQuery 1.8.5

http://jsfiddle.net/urkle/NLhsf/

Changed January 05, 2011 02:43PM UTC by scottgonzalez comment:5

resolution: → worksforme
status: newclosed

This has actually always been available.