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

The enable checkbox for the form element date_selector is triggering JS that displays the calendar

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Forms Library
    • Labels:
      None
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      In a form definition I add the following element, eg:

      $mform->addElement('date_selector', 'datefrom', get_string('statuschangedbetween', 'block_efa_rollcheck'), array('optional' => true));

      Render the form and click the 'enable' checkbox. You will notice it triggers the JS that brings up the calendar, which also occurs when clicking on a day/month/year select box. This is quite an annoyance.

        Attachments

          Activity

            People

            • Assignee:
              samhemelryk Sam Hemelryk
              Reporter:
              markn Mark Nelson
              Tester:
              Nobody
              Participants:
              Component watchers:
              Jake Dallimore, Jun Pataleta
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                24/Nov/10