]> source.dussan.org Git - jquery-ui.git/commitdiff
sortable: fixed issue when no placeholder is defined, and a issue with the element...
authorPaul Bakaus <paul.bakaus@googlemail.com>
Sun, 1 Jun 2008 15:56:49 +0000 (15:56 +0000)
committerPaul Bakaus <paul.bakaus@googlemail.com>
Sun, 1 Jun 2008 15:56:49 +0000 (15:56 +0000)
ui/source/ui.sortable.js

index 17287bb867d2ca33ec9d16e0a5e2fc3f309fef4b..d0eca57b2a49ac3795ce3a4c9c43099030491cec 100644 (file)
 \r
                        this.dragging = true;\r
 \r
-                       //this.mouseDrag(e); //Execute the drag once - this causes the helper not to be visible before getting its correct position\r
+                       this.mouseDrag(e); //Execute the drag once - this causes the helper not to be visible before getting its correct position\r
                        return true;\r
 \r
 \r
                rearrange: function(e, i, a) {\r
                        a ? a.append(this.currentItem) : i.item[this.direction == 'down' ? 'before' : 'after'](this.currentItem);\r
                        this.refreshPositions(true); //Precompute after each DOM insertion, NOT on mousemove\r
-                       this.options.placeholder.update.call(this.element, this.currentItem, this.placeholder);\r
+                       if(this.options.placeholder) this.options.placeholder.update.call(this.element, this.currentItem, this.placeholder);\r
                }\r
        }));\r
        \r