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:
parent
63885b8c1b
commit
bd61a2e97e
1 changed files with 5 additions and 1 deletions
|
@ -333,7 +333,11 @@ Ox.List = function(options, self) {
|
||||||
function dragstart(event, e) {
|
function dragstart(event, e) {
|
||||||
var $target = $(e.target),
|
var $target = $(e.target),
|
||||||
$parent = $target.parent();
|
$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 = {
|
self.drag = {
|
||||||
ids: self.options.selected
|
ids: self.options.selected
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue