Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-32657

Section dragdrop: make possible to define elements swapping in the course format

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.3
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      Hide

      One way to test if it works, is to install one of non-core formats and make sure that neither section nor resource drag-drop works for it.
      The simpler way, is to comment out:

          // Include course format js module
          //$PAGE->requires->js('/course/format/topics/format.js');
      

      at the bottom of course/format/topics/format.php and ensure that drag-drop stopped working for topics format, but still works for weeks.

      Show
      One way to test if it works, is to install one of non-core formats and make sure that neither section nor resource drag-drop works for it. The simpler way, is to comment out: // Include course format js module //$PAGE->requires->js('/course/format/topics/format.js'); at the bottom of course/format/topics/format.php and ensure that drag-drop stopped working for topics format, but still works for weeks.
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-32657-master-1

      Description

      As discussed in MDL-31052, it should be possible to define on the format level which elements should be modified as a result of nodes swapping. The idea is to have a yui module or js file per format, which will have the required functions.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  1 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    25/Jun/12