Drag and drop lesson reordering in the metabox on edit course screen.… #70
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
… #59
All Submissions:
Changes proposed in this Pull Request:
Changes how order is managed so far. Instead of trust on admin input which is error prone handle order by assigning unique integers each lesson and let admin user easily rearrange course order by dragging lessons and sorting them. Order is updated automaticaly. This way it avoids repeated order wich is very ugly. Also it avoid having non int chars which is ugly too. Helps to avoid bugs with pagination. It's more honest with the user regarding AJAX updates, letting the user know operations performed are already done. instead of think they need to save the course. I'll make it a draft so i can spread this change re AJAX callback message to remove and add lesson to course as well in order to be consistent.
Resolves #59 .
How to test the changes in this Pull Request:
Other information:
Changelog entry