]> source.dussan.org Git - jquery-ui.git/commitdiff
Fixed #4341 - Selectable: option appendTo is ignored, helper always appends to body
authorRichard Worth <rdworth@gmail.com>
Wed, 18 Mar 2009 12:22:08 +0000 (12:22 +0000)
committerRichard Worth <rdworth@gmail.com>
Wed, 18 Mar 2009 12:22:08 +0000 (12:22 +0000)
ui/ui.selectable.js

index 5eb34a54bab328c96d61cb0beaa960aa7eb2a308..49cdd805f2312a763e1f2ad0c132d0d80ae1ba6e 100644 (file)
@@ -75,7 +75,7 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, {
 
                this._trigger("start", event);
 
-               $('body').append(this.helper);
+               $(options.appendTo).append(this.helper);
                // position helper (lasso)
                this.helper.css({
                        "z-index": 100,