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

Trigger native JS events in sortable list module

XMLWordPrintable

    • MOODLE_400_STABLE, MOODLE_500_STABLE
    • MOODLE_500_STABLE
    • Hide

      Native events

      1. Navigate to Reports from user menu
      2. Create a new custom report
      3. In report editor add some columns, conditions & filters
      4. Confirm you can drag and drop for each of the following:
        • Report columns
        • Conditions
        • Filters
        • Sorting (column settings)

      jQuery events

      1. Navigate to Courses > Course custom fields in site administration
      2. Create multiple categories and fields
      3. Confirm you can drag and drop the categories and fields
      Show
      Native events Navigate to Reports from user menu Create a new custom report In report editor add some columns, conditions & filters Confirm you can drag and drop for each of the following: Report columns Conditions Filters Sorting (column settings) jQuery events Navigate to Courses > Course custom fields in site administration Create multiple categories and fields Confirm you can drag and drop the categories and fields
    • Hide

      Code verified against automated checks.

      Checked MDL-72293 using repository: https://github.com/paulholden/moodle.git

      More information about this report

      Built on: Mon 21 Oct 2024 05:08:03 AM UTC

      Show
      Code verified against automated checks. Checked MDL-72293 using repository: https://github.com/paulholden/moodle.git main (0 errors / 0 warnings) [branch: MDL-72293 | CI Job ] More information about this report Built on: Mon 21 Oct 2024 05:08:03 AM UTC

      See https://github.com/moodle/moodle/blob/dc437b51715eaee7e55998ff6eb52f751b19a306/lib/amd/src/sortable_list.js#L34

      If possible, would be good to switch to native JS events as per MDL-70990 so that calling code doesn't require a Jquery dependency to use this module

            pholden Paul Holden
            pholden Paul Holden
            Mikel Martín Corrales Mikel Martín Corrales
            Jun Pataleta Jun Pataleta
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 24 minutes
                2h 24m

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