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|
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)) : jQuery(this).find(o.handle)) : jQuery(this);