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

Date selector popup: make available on dynamically created fields

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.7
    • Forms Library, JavaScript
    • MOODLE_27_STABLE
    • MDL-44814-master
    • 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.

      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.

            quen Sam Marshall
            quen Sam Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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