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

Remove dependancy on jQuery

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Deferred
    • Icon: Minor Minor
    • None
    • 4.1
    • Themes
    • MOODLE_401_STABLE

      We don't need jQuery in Bootstrap 5.2, but if Bootstrap detects jQuery in the window object, it’ll add all of our components in jQuery’s plugin system.

      This will allow us to keep doing things like:

      $('[data-bs-toggle="tooltip"]').tooltip()

      and

      {{$('#myTab a').on('shown.bs.tab', () =>

      { // do something... }

      )}}

      And will allow us to keep running with our current core JS that taps into Bootstrap JS.

      If we remove jQuery some core JavaScript relying on Bootstrap will need to be updated

            Unassigned Unassigned
            basbrands Bas Brands
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

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