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

Fire event on table refresh

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.9
    • Fix Version/s: 3.9
    • Component/s: General
    • Testing Instructions:
      Hide
      1. View a course with > 20 participants enroled in it
      2. Navigate to the Course participants page
      3. Open the browser console
      4. In the "Console" tab run:

        require(['core_table/dynamic'], d => { document.addEventListener(d.Events.tableContentRefreshed, e => { window.console.log(e); debugger; }); });
        

      5. In the page, choose a different page of the list of participants
        1. Confirm that the page refreshed
        2. Confirm that a "CustomEvent" was shown in the browser console
      6. Expand out the CustomEvent that was dislayed
        1. Confirm that you see a target
      7. With the source paused run:

          e.target;
        

      8. Find the specified target in the Elements panel:
        In most browser there will be some way to inspect the Node in "Elements" panel, for example in Chrome you can right click and choose "Reveal in elements panel"
        1. Confirm that the target is the table that was updated
      Show
      View a course with > 20 participants enroled in it Navigate to the Course participants page Open the browser console In the "Console" tab run: require(['core_table/dynamic'], d => { document.addEventListener(d.Events.tableContentRefreshed, e => { window.console.log(e); debugger; }); }); In the page, choose a different page of the list of participants Confirm that the page refreshed Confirm that a "CustomEvent" was shown in the browser console Expand out the CustomEvent that was dislayed Confirm that you see a target With the source paused run: e.target; Find the specified target in the Elements panel: In most browser there will be some way to inspect the Node in "Elements" panel, for example in Chrome you can right click and choose "Reveal in elements panel" Confirm that the target is the table that was updated
    • Affected Branches:
      MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_39_STABLE
    • Pull Master Branch:
      MDL-68506-master

      Description

      We need to fire an event whenever we call refreshTableContent

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dobedobedoh Andrew Nicols
              Reporter:
              dobedobedoh Andrew Nicols
              Peer reviewer:
              Simey Lameze
              Integrator:
              Jun Pataleta
              Tester:
              Jun Pataleta
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/Jun/20

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 16 minutes
                  1h 16m