aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.draggable.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.draggable.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.draggable.js')
-rw-r--r--ui/ui.draggable.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/ui.draggable.js b/ui/ui.draggable.js
index 8e670244b..d58e54100 100644
--- a/ui/ui.draggable.js
+++ b/ui/ui.draggable.js
@@ -36,7 +36,9 @@ $.widget("ui.draggable", $.extend($.ui.mouse, {
if (this.helper || o.disabled || $(e.target).is('.ui-resizable-handle')) return false;
var handle = !this.options.handle || !$(this.options.handle, this.element).length ? true : false;
- if(!handle) $(this.options.handle, this.element).each(function() {
+
+
+ $(this.options.handle, this.element).find("*").andSelf().each(function() {
if(this == e.target) handle = true;
});
if (!handle) return false;