django-suit icon indicating copy to clipboard operation
django-suit copied to clipboard

Changing order of TabularInline items not working

Open tyctor opened this issue 5 years ago • 2 comments

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 avatar Dec 11 '19 15:12 tyctor

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 avatar Dec 11 '19 16:12 tyctor

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

tyctor avatar Dec 11 '19 17:12 tyctor