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

Create a YUI module for course utils

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.6
    • 2.5
    • JavaScript
    • MOODLE_25_STABLE
    • MOODLE_26_STABLE
    • Hide
      • Open a course page
      • Turn editing on
        • Ensure that there were no JS errors shown in the console
        • Confirm that drag/drop (moving) works as expected
        • Confirm that each of the course moduleand section toolboxes work as expected
      Show
      Open a course page Turn editing on Ensure that there were no JS errors shown in the console Confirm that drag/drop (moving) works as expected Confirm that each of the course moduleand section toolboxes work as expected

      We have an increasing amount of duplicated code in course modules which differs in how it all works. We need to bring this into a single library function with shared code. So far I can think of:

      • get_section_id
      • get_activity_id
      • get_activity_name

      There will be others too of course.
      We should bring these into a single location so that we can have everything in a non-duplicated, single-point-of-change location.

        1. js-errors001.png
          js-errors001.png
          20 kB
        2. js-errors002.png
          js-errors002.png
          86 kB
        3. js-errors003.png
          js-errors003.png
          34 kB

            dobedobedoh Andrew Lyons
            dobedobedoh Andrew Lyons
            Sam Hemelryk Sam Hemelryk
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Adrian Greeve Adrian Greeve
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.