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

Date picker/File picker javascript conflict

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.5
    • Component/s: Calendar, JavaScript
    • Labels:
      None
    • Testing Instructions:
      Hide

      Test on all supported browsers and themes (sorry)

      1. Create a new course.
      2. On the settings page click on the calendar icon next to 'Course start date'.
      3. Ensure it renders above the 'Course overview files' area (ie the dotted lines do not show on top of it).
      4. Choose a date that is hovering over the filemanager between the dotted lines and make sure the filepicker does not pop-up (it usually pops up when the filemanager is clicked).
      5. Upload a file to the file area.
      6. Click on the calendar icon and select a date on the calendar pop-up directly above that file.
      7. Ensure the file information does not pop-up.
      Show
      Test on all supported browsers and themes (sorry) Create a new course. On the settings page click on the calendar icon next to 'Course start date'. Ensure it renders above the 'Course overview files' area (ie the dotted lines do not show on top of it). Choose a date that is hovering over the filemanager between the dotted lines and make sure the filepicker does not pop-up (it usually pops up when the filemanager is clicked). Upload a file to the file area. Click on the calendar icon and select a date on the calendar pop-up directly above that file. Ensure the file information does not pop-up.
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull Master Branch:
      MDL-39047_master

      Description

      The new course files feature puts a file picker directly above a date picker.

      If there are files in the picker, and the calendar popup overlays the file picker, a click on the calendar will be handled by both inputs (the date is saved and then a popup for the file that was behind the calendar appears).

      My guess is the calendar is not preventing the click event from propogating.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    14/May/13