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

Date selector popup: make available on dynamically created fields

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Development in progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.7
    • Fix Version/s: None
    • Component/s: Forms Library, JavaScript
    • Labels:
    • Testing Instructions:
      Hide

      (As this change is not yet used in core, the test is to check that the date selector is not broken.)

      1. Go to a location that uses a date selector, such as the edit form for a quiz.
      2. Click the icon to bring up the popup.
      EXPECTED: Popup still appears with correct date set.
      3. Use the controls in the popup to select another date.
      EXPECTED: Popup disappears and the new date is set in the dropdown.

      Show
      (As this change is not yet used in core, the test is to check that the date selector is not broken.) 1. Go to a location that uses a date selector, such as the edit form for a quiz. 2. Click the icon to bring up the popup. EXPECTED: Popup still appears with correct date set. 3. Use the controls in the popup to select another date. EXPECTED: Popup disappears and the new date is set in the dropdown.
    • Affected Branches:
      MOODLE_27_STABLE
    • Pull Master Branch:
      MDL-44814-master

      Description

      At present it is not possible to initialise the date selector popup on form fields that are created dynamically - the initialisation works once only.

      A small change can make this possible. I need this for MDL-44070, so submitting it.

      I know that in the long run the date selector should be changed, probably to use the YUI3 calendar widget. I had a look at this but it doesn't seem easy to integrate it with Moodle because it's hard to integrate with Moodle internationalisation. Anyway, although that change will be needed in future, this small change is worth doing now IMO.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              quen Sam Marshall
              Reporter:
              quen Sam Marshall
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: