Skip to content

Commit

Permalink
update duplicated field sorting so it does not work on non-duplicated…
Browse files Browse the repository at this point in the history
… fields anymore
  • Loading branch information
cmwelsh committed Oct 28, 2011
1 parent dc34da2 commit b31b9de
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion js/mf_sortable_groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,11 @@ jQuery(document).ready(function($){
$.mf_bind('callback_after_sort');
}
});
$('.mf_group > .mf-field').sortable();
$('.mf_group > .mf-field').sortable({
sort: function () {
if ($(this).children('.mf-field-ui').length === 0) {
return false;
}
}
});
});

0 comments on commit b31b9de

Please sign in to comment.