Ticket #972 (closed feature: wontfix)
Ability to select a drag handle that is a parent element of the draggable item.
| Reported by: | jeffkretz | Owned by: | stefan |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.1.3 |
| Component: | interface | Version: | 1.1a |
| Keywords: | draggables | Cc: | |
| Blocking: | Blocked by: |
Description (last modified by scott.gonzal) (diff)
I implemented the drag-and-drop interface for a table-based menu system. The element to drag was an "A" element inside a TD, but I wanted the user to be able to drag the TD.
I suggest something like this (which worked when I tested it on my project).
Have an optional property such as "handleUp", which would be used in conjunction with "handle". On line 502 of idrag.js, instead of
var dhe = o.handle ? jQuery(this).find(o.handle) : jQuery(this);
something like this:
var dhe = o.handle ? (o.handleUp ? jQuery(jQuery(this).parents(o.handle)[0]) : jQuery(this).find(o.handle)) : jQuery(this);
JK
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Interface is no longer supported; consider switching to jQuery UI.