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

Changing order of TabularInline items not working #744

Open
tyctor opened this issue Dec 11, 2019 · 2 comments
Open

Changing order of TabularInline items not working #744

tyctor opened this issue Dec 11, 2019 · 2 comments

Comments

@tyctor
Copy link

tyctor commented Dec 11, 2019

DjangoSuit v2
Django 2.2.6

after changing order of TabularInline items, sended values of input sort_order remains same
so new order is not saved
is here somebody with same issue?

@tyctor
Copy link
Author

tyctor commented Dec 11, 2019

ok i found what it is not working but i am not sure why...
problem is in suit.sortables.js on line var selector = $(this).selector;
where variable selector is undefined, so it causes that new order is not submited
@darklow can you confirm this for me and advise what could be problem?

@tyctor
Copy link
Author

tyctor commented Dec 11, 2019

now i can see important difference between demo and my app
i am using Django 2.2, which contains jQuery 3.3
so probably that is source of all my problems
$(this).selector is not supported from jQuery 3.0

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

1 participant