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

Replace jQuery collapsible by plain vanilla javascript

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.5
    • Themes
    • MOODLE_405_STABLE

      In Boostrap 4 when using Collapsible we used something similar to:

       const toggler = jQuery(sectionnode).find(this.selectors.MODALTOGGLER);

      Once that Boostrap 5 is integrated we need to review all code touching collapsible and attempt to replace it with vanilla javascript like:

       const toggler = sectionnode.querySelector(this.selectors.MODALTOGGLER); 

      This sample code is from MDL-81683

       

            Unassigned Unassigned
            laurent.david@moodle.com Laurent David
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

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