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

Rewrite form/shortforms as AMD module



    • Improvement
    • Status: Development in progress
    • Minor
    • Resolution: Unresolved
    • 3.10.1
    • None
    • 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.


        Issue Links



              dobedobedoh Andrew Lyons
              marina Marina Glancy
              Jake Dallimore, Mathew May, Mihail Geshoski, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              0 Vote for this issue
              6 Start watching this issue