Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-5994

Modify the 'Are you sure you want to navigate away from this page?' Pop-up

    Details

      Description

      The current 'alert on unsaved changes' dialog uses a browser-specific UI. Neither the order of the buttons, nor the default button ('Ok') can be modified as far as we can tell. So, in order to prevent the 'Enter' key from executing the 'Ok' - we'd have to use a diffferent mechanism for this.

      Note that Gmail (among other web app UI's) has the same behavior as the current implementation (and uses the same mechanism - window.onbeforeunload confirmExit - to alert on unsaved changes in an email.

      ---- original post ----
      See issue 5593: http://issues.civicrm.org/jira/browse/CRM-5993

      You can also bypass the pop-up accidently by simply entering a search phrase in the search box located in the black menu bar in the top left of the Civi screen and selecting a result from the drop down box and hitting the ENTER key twice quickly. This will actually display the pop-up but since the default selection is 'OK' navigate me away from this page you will accidently loose you information.

      An improvement to this would be to have the default selection in the pop-up to be 'Cancel' and a user would have to go to some effort such as scrolling across with their arrow key or clicking on 'OK' in order to select 'OK' besides hitting enter again which could be done accidently.

        Attachments

          Activity

            People

            • Assignee:
              kurund Kurund Jalmi
              Reporter:
              pjohar@physicianhealth.com Pawan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: