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

Accidental browser navigation loses changes when editing wiki

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.9.3, 2.0
    • Fix Version/s: None
    • Component/s: Wiki (2.x)
    • Labels:
      None
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      Open up a wiki page
      Click on 'edit'
      Start making some changes
      Browse to another page (can easily happen if your browser is set to open external links in same window)

      WHAT HAPPENS
      The changes you made are now lost (some browsers will retrieve them if you press back, but not all browsers support this).

      WHAT WAS EXPECTED
      A warning dialog (with OK/Cancel buttons), to prevent accidental loss of edits

      Suggestion: use 'window.onbeforeunload' to pop up a message and add 'onclick="window.onbeforeunload = null;"' to each of the 'save', 'cancel' and 'preview' buttons.

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: