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

Warning message if leaving the grader without saving

    Details

    • Testing Instructions:
      Hide

      In a course with enrolled users and the 'enableajax' grader preference turned off:

      View the gradebook for the course.
      Enter editing mode.
      Put some grades in the input boxes and don't save them.
      Attempt to use a link on the page to browse somewhere else.
      You should see a warning dialogue telling you that you have unsaved changes, giving you the chance to not navigate away.

      With the enableajax preference turned on, you should see no such warning.

      Lastly, with the preference off, enter some grades and save the changes. You should not be warned about unsaved changes (since you're saving them).

      Show
      In a course with enrolled users and the 'enableajax' grader preference turned off: View the gradebook for the course. Enter editing mode. Put some grades in the input boxes and don't save them. Attempt to use a link on the page to browse somewhere else. You should see a warning dialogue telling you that you have unsaved changes, giving you the chance to not navigate away. With the enableajax preference turned on, you should see no such warning. Lastly, with the preference off, enter some grades and save the changes. You should not be warned about unsaved changes (since you're saving them).
    • Affected Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      If the ajax editing option isn't enabled and you're using quick grading to enter a bunch of grades in the grader report, it's easy to click a link to another page (say a name letter filter or any other link) and be navigated away to another page and lose all the grades you just entered as you hadn't clicked the save/update button.

      This enhancement adds a check with onbeforeunload that checks to see if any of the input elements in the grader report have changed since the page was loaded and if so, present the user with a warning giving them the chance to cancel the navigation and save.

      If the ajax-saving is enabled, this enhancement does nothing - the changes get saved dynamically as you enter them after all.

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

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