Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…-sortable into lisandropuzzolo-nested-structures-31
  • Loading branch information
rniemeyer committed Jan 9, 2013
2 parents f922757 + 14bcd8e commit f5d0521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/knockout-sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@

dragItem = null;

if (this === ui.item.parent()[0] && item) {
if ( ( $(this).has(ui.item.parent()) || this === ui.item.parent()[0] ) && item) { // this allows to sort items in nested data structures
//identify parents
sourceParent = ko.utils.domData.get(el, PARENTKEY);
targetParent = ko.utils.domData.get(el.parentNode, LISTKEY);
Expand Down

0 comments on commit f5d0521

Please sign in to comment.