aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2008-06-01 15:56:49 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2008-06-01 15:56:49 +0000
commit1c2d48f1302acee59d07c9897e280db4bf09dd0f (patch)
treea2060384f06306edc334398a2500c1fdf3d5df76
parent75fdffacb0933e8b0eaaf1710a82e359532ea9b4 (diff)
downloadjquery-ui-1c2d48f1302acee59d07c9897e280db4bf09dd0f.tar.gz
jquery-ui-1c2d48f1302acee59d07c9897e280db4bf09dd0f.zip
sortable: fixed issue when no placeholder is defined, and a issue with the element shown without positioning at drag start
-rw-r--r--ui/source/ui.sortable.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/source/ui.sortable.js b/ui/source/ui.sortable.js
index 17287bb86..d0eca57b2 100644
--- a/ui/source/ui.sortable.js
+++ b/ui/source/ui.sortable.js
@@ -396,7 +396,7 @@
this.dragging = true;
- //this.mouseDrag(e); //Execute the drag once - this causes the helper not to be visible before getting its correct position
+ this.mouseDrag(e); //Execute the drag once - this causes the helper not to be visible before getting its correct position
return true;
@@ -562,7 +562,7 @@
rearrange: function(e, i, a) {
a ? a.append(this.currentItem) : i.item[this.direction == 'down' ? 'before' : 'after'](this.currentItem);
this.refreshPositions(true); //Precompute after each DOM insertion, NOT on mousemove
- this.options.placeholder.update.call(this.element, this.currentItem, this.placeholder);
+ if(this.options.placeholder) this.options.placeholder.update.call(this.element, this.currentItem, this.placeholder);
}
}));