From bd61a2e97e6a7b5aed2c2634aca274720b485ab8 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sun, 4 Sep 2011 12:49:33 +0000 Subject: [PATCH] fix a bug where in text lists, no draganddropstart event would fire if the drag originated in a cell that contains another element --- source/Ox.UI/js/List/Ox.List.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/List/Ox.List.js b/source/Ox.UI/js/List/Ox.List.js index 7189cccd..31ec0806 100644 --- a/source/Ox.UI/js/List/Ox.List.js +++ b/source/Ox.UI/js/List/Ox.List.js @@ -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 }