Skip to content
This repository has been archived by the owner on Jan 13, 2020. It is now read-only.

Restrict level change #170

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

abernh
Copy link

@abernh abernh commented Nov 17, 2015

allows to restrict movement within depths, e.g. keeping items restricted to their original depth all along while still allowing complete sorting of all levels.

setting the options can prevent items to switch between depth while they can still be moved within the original depth
@SimonOrdo
Copy link

@abernh
Assuming allow is false for both... it doesn't seem to allow dropping on to a different parent if that parent does not already have children. Any idea how to fix that?
Thanks for the update!

chewmunyoke pushed a commit to chewmunyoke/Nestable that referenced this pull request Oct 27, 2016
Following Pull Request dbushell#170 and added fix to allow an item to be dragged onto a different parent which doesn't already have children. Also fixed syntax error on line 143.
@chewmunyoke
Copy link

@SimonOrdo
I have made additional changes in my PR to fix your problem. Hope you find it helpful :)

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

Successfully merging this pull request may close these issues.

3 participants