aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.sortable.js
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2008-06-07 23:25:47 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2008-06-07 23:25:47 +0000
commit68d37568e0041290f3c957891c2c2919cd504f0f (patch)
tree2c07a8f40564a4d67adcd8b0443cf4b60657002b /ui/ui.sortable.js
parent47e04b888dbc6cdc99ebf37461a08a7c53d5bc49 (diff)
downloadjquery-ui-68d37568e0041290f3c957891c2c2919cd504f0f.tar.gz
jquery-ui-68d37568e0041290f3c957891c2c2919cd504f0f.zip
draggable, sortable: fixed issue when handle wasn't working with elements nested in the handle (fixes #2937)
Diffstat (limited to 'ui/ui.sortable.js')
-rw-r--r--ui/ui.sortable.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ui.sortable.js b/ui/ui.sortable.js
index a433805e8..cbfdd6623 100644
--- a/ui/ui.sortable.js
+++ b/ui/ui.sortable.js
@@ -295,7 +295,7 @@ $.widget("ui.sortable", $.extend($.ui.mouse, {
if(!currentItem) return false;
if(this.options.handle && !overrideHandle) {
var validHandle = false;
- $(this.options.handle, currentItem).each(function() { if(this == e.target) validHandle = true; });
+ $(this.options.handle, currentItem).find("*").andSelf().each(function() { if(this == e.target) validHandle = true; });
if(!validHandle) return false;
}