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

Rewrite form/shortforms as AMD module

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.10.1
    • Forms Library, JavaScript
    • 0
    • Internationals - 3.11 Sprint 7, Internationals - 3.11 Sprint 8, Internationals - 3.11 Sprint 9, Internationals - 4.0 Sprint 1, HQ Team International Sprint 2, HQ Team International Sprint 3

      The current shortforms implementation was written in the days of YUI and contains a couple of limitations which did not have a solution when it was first written.

      One of these is the requirement that all strings be included in the page whether they are to be used or not.

      This issue looks to rewrite the shortforms JS as an AMD module in the ES6+ style, and to remove the requirement to include the strings in every page regardless of their use.

      This will also help us to reduce our YUI code.

      The current shortforms JS does make use of some JS events, and so it blocked by MDL-70990 which standardises our use of custom JS events in Moodle.

        1. expandall.png
          44 kB
          Marina Glancy
        2. Screenshot from 2021-02-09 10-10-53.png
          17 kB
          Marina Glancy

            dobedobedoh Andrew Lyons
            marina Marina Glancy
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:

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