Skip to content
Permalink
Browse files

sortable: update callback wass not called everytime (fixes #3028)

  • Loading branch information
Paul Bakaus
Paul Bakaus committed Jun 26, 2008
1 parent f7dc618 commit e8b545382ee8b13fa1a23a54ee0f61645377b32a
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/ui.sortable.js
@@ -578,7 +578,7 @@ $.widget("ui.sortable", $.extend($.ui.mouse, {
},
clear: function(e, noPropagation) {

if(this.domPosition[0] != this.currentItem.prev().not(".ui-sortable-helper")[0] || this.domPosition[1] != this.currentItem.parent()[0]) this.propagate("update", e, null, noPropagation); //Trigger update callback if the DOM position has changed
if(this.domPosition.prev != this.currentItem.prev().not(".ui-sortable-helper")[0] || this.domPosition.parent != this.currentItem.parent()[0]) this.propagate("update", e, null, noPropagation); //Trigger update callback if the DOM position has changed
if(!contains(this.element[0], this.currentItem[0])) { //Node was moved out of the current element
this.propagate("remove", e, null, noPropagation);
for (var i = this.containers.length - 1; i >= 0; i--){

0 comments on commit e8b5453

Please sign in to comment.
You can’t perform that action at this time.