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

Can not drop into empty list. #6

Open
obodnar opened this issue Mar 26, 2015 · 2 comments
Open

Can not drop into empty list. #6

obodnar opened this issue Mar 26, 2015 · 2 comments

Comments

@obodnar
Copy link

obodnar commented Mar 26, 2015

I have two nestable lists side by side and I need to drag/drop from one list to another. After small research it seems that there is no condition that sets "dd-empty" container, and I added such few lines:
if (!model.length) {
$('<div class="dd-empty"></div>').appendTo(root);
return root;
}
right after
var root = $('<div class="dd"></div>');
in buildNestableHtml function, and now empty container appears and everything works fine.

@kamilkp
Copy link
Owner

kamilkp commented Mar 26, 2015

Can you make a pull request?

@obodnar
Copy link
Author

obodnar commented Mar 26, 2015

I will, thanks.

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

No branches or pull requests

2 participants