-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.6
-
Fix Version/s: 3.6
-
Component/s: JavaScript, Themes, Usability
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_36_STABLE
-
Fixed Branches:MOODLE_36_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-51803-master-mouse -
Pull Master Diff URL:
This is a proposal to implement a re-usable template and JS module to allow moving table rows or list elements.
Each UI should be able to use it by specifying an AJAX callback on completion.
It should be possible to set the first row/element as non-draggable, maybe there are use cases for more than one row/element.
Use cases:
- rearranging sections - exists but non standard
- rearranging activities - this may be a bit trickier because they can be moved to other sections, i.e. outside of the initial ul element
- changing courses sortorder in the course and category management interface - exists but not standard
- changing categories sortorder in the course and category management interface - MDL-42297
- changing courses order in "course overview" block - exists but not standard
- changing order of enrolment methods - MDL-29302
- filter plugins list, course format plugins list, question types, repositories, etc.
- any table in Moodle where we have arrows up and down to sort