You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sortable.refreshPositions();// Call the sortable's refreshPositions at drag start to refresh the containerCache since the sortable container cache is used in drag and needs to be up to date (this will ensure it's initialised as well as being kept in step with any changes that might have happened on the page).
715
+
716
+
if(sortable&&!sortable.options.disabled){
717
+
draggable.sortables.push(sortable);
718
+
719
+
// refreshPositions is called at drag start to refresh the containerCache
720
+
// which is used in drag. This ensures it's initialized and synchronized
721
+
// with any changes that might have happened on the page since initialization.
722
+
sortable.refreshPositions();
719
723
sortable._trigger("activate",event,uiSortable);
720
724
}
721
725
});
722
-
723
726
},
724
-
stop: function(event,ui,inst){
725
-
726
-
//If we are still over the sortable, we fake the stop event of the sortable, but also remove helper
727
+
stop: function(event,ui,draggable){
727
728
varuiSortable=$.extend({},ui,{
728
-
item: inst.element
729
+
item: draggable.element
729
730
});
730
731
731
-
inst.cancelHelperRemoval=false;
732
+
draggable.cancelHelperRemoval=false;
732
733
733
-
$.each(inst.sortables,function(){
734
-
if(this.instance.isOver){
735
-
this.instance.isOver=0;
734
+
$.each(draggable.sortables,function(){
735
+
varsortable=this;
736
+
737
+
if(sortable.isOver){
738
+
sortable.isOver=0;
736
739
737
740
// Allow this sortable to handle removing the helper
738
-
inst.cancelHelperRemoval=true;
739
-
this.instance.cancelHelperRemoval=false;
741
+
draggable.cancelHelperRemoval=true;
742
+
sortable.cancelHelperRemoval=false;
740
743
741
744
// Use _storedCSS To restore properties in the sortable,
742
745
// as this also handles revert (#9675) since the draggable
743
746
// may have modified them in unexpected ways (#8809)
0 commit comments