Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-3443

HotPot quiz redirecting after 2 seconds instead of 30

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Deferred
    • Affects Version/s: 1.9.11
    • Fix Version/s: None
    • Component/s: Module: HotPot
    • Labels:
      None
    • Environment:
      LAMP, CentOS 4
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      We had a client noticed that the Hot Potato Quizes were redirecting after 2 seconds when the correct answer was entered, which was not enough time to allow the student to read the feedback provided.

      I managed to trace it back to a the function Finish() being called when the quiz was finished as well as setTimeout('Finish()', SubmissionTimeout); being called. The fix I applied was to comment out the direct calling of Finish(), which was on line 2192 of /mod/hotpot/hotpot-full.js so the modified line is now:
      var s = getFuncCode(f);// + 'Finish();';
      but this could be shortened to
      var s = getFuncCode(f);

      Hope this helps

        Attachments

          Activity

            People

            • Assignee:
              xxxxxxx Gordon Bateson
              Reporter:
              ashleys Ashley Sewell
              Tester:
              Nobody
              Participants:
              Component watchers:
              Gordon Bateson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: