问题
I have two tables fichas
and actividads
related in a pivot table called actividad_ficha
. In this pivot table I've created another column called orden_actividad
(to short the 'activities' in every 'ficha').
I have a View where I show all the 'activities' related with one specific 'ficha'. I would like to be able to drag-and-drop my list of 'actividads' and save the new order automatically. I'm using some jQuery in my application, but AJAX resists to me.
Do you know how can I get it? or maybe you know some tutorial to bring me some help?
来源:https://stackoverflow.com/questions/25020122/laravel-4-change-order-of-items