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

jqueryui sometimes get's loaded before bootstrap's javascript. This breaks the drawer collapse functionality

XMLWordPrintable

    • MOODLE_400_STABLE
    • Hide

      Reproduction steps:

      1. Install my version of format_topics https://github.com/frederikmillingpytlick/format_topics/tree/import-jquery-ui (the import-jquery-ui branch)
      2. Install this chrome extension to consistently reproduce the error: https://chrome.google.com/webstore/detail/url-throttler/kpkeghonflnkockcnaegmphgdldfnden
      3. Configure the chrome extension with a delay of 15000, add this URL: "*://*/lib/javascript.php/*/lib/jquery/ui*" and enable it.
      4. Open a course with the topics format and wait 20-25 seconds to make sure everything is loaded.
      5. The drawers should no longer work, because jqueryui is loaded after bootstrap's javascript.

      Show
      Reproduction steps: 1. Install my version of format_topics https://github.com/frederikmillingpytlick/format_topics/tree/import-jquery-ui (the import-jquery-ui branch) 2. Install this chrome extension to consistently reproduce the error: https://chrome.google.com/webstore/detail/url-throttler/kpkeghonflnkockcnaegmphgdldfnden 3. Configure the chrome extension with a delay of 15000, add this URL: "*://*/lib/javascript.php/*/lib/jquery/ui*" and enable it. 4. Open a course with the topics format and wait 20-25 seconds to make sure everything is loaded. 5. The drawers should no longer work, because jqueryui is loaded after bootstrap's javascript.

      We have an issue similar to https://tracker.moodle.org/browse/MDL-74459

      The drawers are unable to be collapsed/uncollapsed and the same console errors appear.

      It occurs because we import jqueryui in our course format plugin. If jqueryui is loaded after bootstrap's javascript it breaks the drawers.

            dobedobedoh Andrew Lyons
            frederikmillingpytlick Frederik Milling Pytlick
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.