Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-5937

jQuery Version Conflict

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.10
    • Fix Version/s: None
    • Labels:
      None

      Description

      Good day,

      The Moodle theme on our site loads a newer version of jQuery v2.0.3 (2013).

      Unfortunately, Configurable Reports subsequently loads its own instance of jQuery 1.2.3 (2011), which is much older than the version the theme is using. This results in conflicts and failures when the theme uses features that didn't exist back then.

      Could you please re-write the way jQuery is only loaded by the plugin if it is not already loaded? Here is an untested example of how this might be achieved:

      <script type="text/javascript">
      if (typeof jQuery == 'undefined')

      { document.write(unescape('%3Cscript type="text/javascript" src="../../lib/jquery/jquery-1.11.0.min.js"%3E%3C/script%3E')); }

      </script>

      You might need some additional code to check the version of jQuery available with a given version of Moodle if that is a concern or just include a more recent version with the plugin.

      Note that I also reported this in the GitHub issue tracker.

      Best regards,

      Michael Milette

        Attachments

          Activity

            People

            Assignee:
            jleyva Juan Leyva
            Reporter:
            michael-milette Michael Milette
            Participants:
            Component watchers:
            Juan Leyva, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: