Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit sorting only within the same levels #84

Open
chodorowicz opened this issue Apr 15, 2013 · 2 comments
Open

Limit sorting only within the same levels #84

chodorowicz opened this issue Apr 15, 2013 · 2 comments

Comments

@chodorowicz
Copy link

I'd like to sort elements only within the levels they were originally in. So element which was on 3 levels deep can only be placed under different parent, but parent must be on level 3.
It would work somewhat like limiting axis: 'y' (in case of vertical tree).

Plain jQuery UI Sortable almost works with connected list, but it doesn't let to easily place elements under elements which don't have any children.

Is it possible?

@mjsarfatti
Copy link
Owner

Hi,
it's probably doable with regular Sortable if you make sure each element keeps at least an empty ul/ol at all times.

I assigned it a Feature request tag anyway.

@Spiderkeg
Copy link

Using Sortable in conjunction with nestedSortable does kinda work, but the "connectWith" option prevents nesting with the newer jQuery 1.9. jQuery 1.7 appears to work. I created a working example using both the newer and older jQuery libraries.

#87

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants