Skip to content

Commit 1af1425

Browse files
committed
Fixing bug in dropping items into empty connected lists. Closes #15.
1 parent 0e7640d commit 1af1425

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jquery.sortable.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ $.fn.sortable = function(options) {
7070
dragging.hide();
7171
$(this)[placeholder.index() < $(this).index() ? 'after' : 'before'](placeholder);
7272
placeholders.not(placeholder).detach();
73+
} else if (!placeholders.is(this) && !$(this).children(options.items).length) {
74+
placeholders.detach();
75+
$(this).append(placeholder);
7376
}
7477
return false;
7578
});

0 commit comments

Comments
 (0)