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

Quiz navigation does not trigger the quiz on-submit JavaScript

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.5, 2.2.2
    • Fix Version/s: 2.1.6, 2.2.3
    • Component/s: Quiz
    • Labels:
    • Testing Instructions:
      Hide

      1. Create a quiz with several pages.
      2. Preview it.
      3. Click the next button at the bottom of the first page. Note that the next button immediately disables before the page reloads.
      4. Now click one of the buttons in the quiz navigation block. Verify that disables the buttons in the same way. (This is the bit that used to be broken.)

      Show
      1. Create a quiz with several pages. 2. Preview it. 3. Click the next button at the bottom of the first page. Note that the next button immediately disables before the page reloads. 4. Now click one of the buttons in the quiz navigation block. Verify that disables the buttons in the same way. (This is the bit that used to be broken.)
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      The main form on mod/quiz/attempt.php has some on-submit JavaScrit. For example there is some code to prevent double-clicking on the submit button by disabling all submit buttons when the form is submitted.

      When you click on one of the question number buttons in the quiz navigation, it submits the form (currently by calling form.submit()). This does not run the on-submit JavaScript. We need to find another way to write the navigation JavaScript so that it does run the on-submit JavaScript.

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/May/12