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

Unify init params from course editor AMD modules

XMLWordPrintable

    • 3
    • HQ 2025 Planning I1 Moppies

      Since 4.0 the course editor uses smaller AMD modules to control each UI element.

      The first implemented modules used element IDs and the first init parameter. However, later in the code, it changes to query selectors (because using IDs is not recommended by Moodle coding style).

      This issue is about replacing all previous IDs with query selectors. This means:

      • Change the affected modules in course/format/amd/src/content to use query selectors.
      • Add ID as a fallback when the query selector returns nothing (for backward compatibility). However, it should log a debug message alerting that ID use is deprecated.
      • Create an issue for the final deprecation of using direct IDs in Moodle 6.0.

            laurent.david@moodle.com Laurent David
            tusefomal Ferran Recio
            Mikel Martín Corrales Mikel Martín Corrales
            Ferran Recio Ferran Recio
            CiBoT CiBoT
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours, 48 minutes
                5h 48m

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