Without some sort of UI element acknowledging the change, it's hard for the user to know that the change was saved automatically.
This PR adds some JS code to listen to the POST /reorder ajax request and on success or error, display a message within AA's default flashes div.
I personally think this is something that could be default behavior, but for now, I've left it as something that has to be enabled for each call to reorderable_table like this:
reorderable_table_for collection, "data-show-flash-messages": true do
Without some sort of UI element acknowledging the change, it's hard for the user to know that the change was saved automatically.
This PR adds some JS code to listen to the
POST /reorder
ajax request and on success or error, display a message within AA's defaultflashes
div.I personally think this is something that could be default behavior, but for now, I've left it as something that has to be enabled for each call to
reorderable_table
like this: