Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-15363

jQuery datepicker breaks with duplicate dom ids

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.5
    • Fix Version/s: 4.6
    • Component/s: None
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      Tabs and popups can mean several forms in the dom at once, and many forms have similar or the same names for elements. Unfortunately our quickform implementation uses the element name as the dom id, causing collisions. Aside from creating invalid markup, these collisions are usually harmless (browsers are good at handling invalid markup). But our implementation of jQuery datepicker and timepicker is very susceptible to breaking, and "start_date" and "end_date" are very common field names.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                colemanw Coleman Watts
                Reporter:
                colemanw Coleman Watts
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: