mcm-ham / dragsort

jQuery List DragSort
2 stars 1 forks source link

dragEnd should allow a boolean return value to revert state on false #2

Open mcm-ham opened 6 years ago

mcm-ham commented 6 years ago

Am implementing dragsort with a server-side ajax command to "save" the changed order of my list to my database.   IF this fails, I need to be able to return false from dragEnd to make the UI "revert" back to the original state.   I think this behaviour should be standard from within DragSort rather than writing it myself (quick solution = reload page, longer solution = do it dynamically in jQuery).   DragSort naturally fits with ajax server updates, so your plugin should be very friendly for this.

This work item was migrated from CodePlex

CodePlex work item ID: '26326' Vote count: '2'

mcm-ham commented 6 years ago

[mcm_ham@30/09/2011] There is example code for this here: http://dragsort.codeplex.com/discussions/269270