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

SCORM pre-req doesn't highlight currently selected node

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4, 2.5
    • Fix Version/s: 2.4.4
    • Component/s: SCORM
    • Labels:
    • Testing Instructions:
      Hide
      1. Download this zip:
        http://scorm.com/wp-content/assets/golf_examples/PIFS/AllGolfExamples.zip
      2. Extract the file "SequencingSimpleRemediation_SCORM20043rdEdition.zip"
      3. Add this SCORM package to your course
      4. Enter the SCORM package
      5. click on various SCO's in the toc "laying the Game, Etiquette, Handicapping etc"
      6. each click make sure the JS error mentioned in the description doesn't show
      7. Each click make sure the item(currently selected) in the TOC is highlighted after clicking.
      8. open a new tab in your browser and select it (doesn't matter what the content is)
      9. Switch back to the SCORM window and make sure the item in the toc is still highlighted.
      Show
      Download this zip: http://scorm.com/wp-content/assets/golf_examples/PIFS/AllGolfExamples.zip Extract the file "SequencingSimpleRemediation_SCORM20043rdEdition.zip" Add this SCORM package to your course Enter the SCORM package click on various SCO's in the toc "laying the Game, Etiquette, Handicapping etc" each click make sure the JS error mentioned in the description doesn't show Each click make sure the item(currently selected) in the TOC is highlighted after clicking. open a new tab in your browser and select it (doesn't matter what the content is) Switch back to the SCORM window and make sure the item in the toc is still highlighted.
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE
    • Pull Master Branch:
      master_MDL-37844

      Description

      This Js error occurs when navigating through a SCORM for example when selecting an item in the toc.
      Error: TypeError: scorm_layout_widget.getUnitByPosition is not a function
      Source File: mod/scorm/loaddatamodel.php?a=448&scoid=2991&currentorg=&attempt=1
      Line: 219

      because scorm_layout_widget isn't defined properly

      also:
      left.expanded should be left.expand (also mentioned in MDL-35840) - when an item in the sco is selected it should be highlighted in the toc.

      When moving the window focus (by viewing another tab in your browser window) and returning to the SCORM window the highlighted item in the toc is lost.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    13/May/13