Skip to main content

Bug Tracker

Side navigation

#972 closed feature (wontfix)

Opened February 17, 2007 02:43AM UTC

Closed March 31, 2008 02:17AM UTC

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:
Blocked by: Blocking:
Description

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

Attachments (0)
Change History (1)

Changed March 31, 2008 02:17AM UTC by scott.gonzal comment:1

description: 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);\ \ JKI 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
need: → Review
resolution: → wontfix
status: newclosed

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