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

Create a YUI module for course utils

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.6
    • Component/s: JavaScript
    • Labels:
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      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.

        Attachments

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

          Issue Links

            Activity

              People

              Assignee:
              dobedobedoh Andrew Nicols
              Reporter:
              dobedobedoh Andrew Nicols
              Peer reviewer:
              Sam Hemelryk
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Adrian Greeve
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                18/Nov/13