johnny / jquery-sortable

A flexible, opinionated sorting plugin for jQuery
http://johnny.github.io/jquery-sortable/
Other
1.52k stars 441 forks source link

Can I limit nesting level? #249

Open hurelhuyag opened 6 years ago

hurelhuyag commented 6 years ago

I need to limit nest level to 2. I don't want 3rd level of children. How can I do this?

parent
- child
- - grandchildren (I don't want this level)
jamesrosstwo commented 6 years ago

The easiest way to do this that I know of is to check out this PR.