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

Profile HTML Snippet code is missing required jQuery statements and scripts as well as Calendar scripts (3.0 only)

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.0.2, 3.1
    • Fix Version/s: 3.0.3, 3.1
    • Component/s: CiviCRM Profile
    • Labels:
      None

      Description

      1. The Profile HTML Snippet (civicrm/admin/uf/group?action=profile&gid=1) form code is missing the script and css references needed for jQuery widgets. It's also missing the jQuery.noConflict() statement.

      This means that commonly used jQuery field widgets (like Country -> State) are broken.

      Basically I think we need to include common/jquery.tpl output in the form snippet. (But check if there's some we should leave out ??)

      2. I noticed that the 3.1 version of common/jquery.tpl still has the jscript and css stuff for the old calendar. I "think" this should be removed (and the scripts removed from the distribution) - unless we're still using the old date-picker / calendar somewhere in 3.1 ??

      NOTE: Ajax-driven fields (ones that load content dynamically from the server) will probably NOT function if the snippet code is pasted into a web page hosted on a different domain from the CiviCRM site. This is due to security restrictions against cross-domain script execution and is not "fixable" as far as we know. I've added a warning about this to the inline help.

        Attachments

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified