XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8
    • Fix Version/s: 2.8
    • Component/s: SCORM add-on
    • Labels:
    • Testing Instructions:
      Hide

      Since the API is still inactive, the only way to test it is to manually trigger the event.

      1. Open a SCORM in the app.
      2. Open the JavaScript console and execute the following lines. Please replace the scormid value with your SCORM ID.

        var $mmEvents = angular.element(document.querySelector('[ng-app]')).injector().get('$mmEvents');
        var mmaModScormEventUpdateToc= angular.element(document.querySelector('[ng-app]')).injector().get('mmaModScormEventUpdateToc');
        $mmEvents.trigger(mmaModScormEventUpdateToc, {scormid: 11});
        

      3. Check that a spinner is shown while TOC is being loaded, and that the TOC is updated when it's done.
      Show
      Since the API is still inactive, the only way to test it is to manually trigger the event. Open a SCORM in the app. Open the JavaScript console and execute the following lines. Please replace the scormid value with your SCORM ID. var $mmEvents = angular.element(document.querySelector('[ng-app]')).injector().get('$mmEvents'); var mmaModScormEventUpdateToc= angular.element(document.querySelector('[ng-app]')).injector().get('mmaModScormEventUpdateToc'); $mmEvents.trigger(mmaModScormEventUpdateToc, {scormid: 11}); Check that a spinner is shown while TOC is being loaded, and that the TOC is updated when it's done.
    • Affected Branches:
      MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE

      Description

      The TOC should be rendered again under certain circumstances.

      We should use the same icons that the Moodle Web version for indicating if the SCORM is completed, passed, failed, etc... See icons here

      Note that initially this will require to be on-line (so this information is retrieved from the server), once we support offline browsing we will have to update the TOC considering the local information stored and not synchronized

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            jleyva Juan Leyva
            Peer reviewer:
            Juan Leyva Juan Leyva
            Integrator:
            Juan Leyva Juan Leyva
            Tester:
            Juan Leyva Juan Leyva
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              22/Jan/16