fix a bug where in text lists, no draganddropstart event would fire if the drag originated in a cell that contains another element

This commit is contained in:
rlx 2011-09-04 12:49:33 +00:00
parent 63885b8c1b
commit bd61a2e97e

View file

@ -333,7 +333,11 @@ Ox.List = function(options, self) {
function dragstart(event, e) {
var $target = $(e.target),
$parent = $target.parent();
if ($target.is('.OxTarget') || $parent.is('.OxTarget')) {
if (
$target.is('.OxTarget') // icon lists
|| $parent.is('.OxTarget') // text lists
|| $parent.parent().is('.OxTarget') // text lists with div inside cell
) {
self.drag = {
ids: self.options.selected
}