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

JS datepicker resets url on angularjs pages

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.6
    • Fix Version/s: None
    • Component/s: Core CiviCRM
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      The javascript datepicker resets the current document url when selecting a date if it is used in the angularjs context. This is most likely caused due to the dates being hyperlinks which href-attributes are set to "#":

      <a class="ui-state-default" href="#">27</a>
      

      Steps to reproduce:
      1. Add a crm-ui-datepicker to an angularjs-page
      2. Select a date
      3. The url gets reset (i.e. from "/civicrm/a/#/campaign/41/view" to "/civicrm/a/#"

      This also leads to dialogs acting weird, like being mispositioned or scrolled to the top, when used in combination with a datepicker.

      I can provide an example page if necessary.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nikobo Niko Bochan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: