Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4909

ModalWindow overwrites window.onbeforeunload

    XMLWordPrintableJSON

Details

    Description

      If window.onbeforeunload is changed after a ModalWindow is opened the change is lost when the ModalWindow is closed. I expected calling ModalWindow#showUnloadConfirmation(false) would fix this, but the javascript for the modal window unconditionally overwrites window.onbeforeunload. I suggest checking settings.unloadConfirmation before overwriting window.onbeforeunload.

      Attachments

        1. windowOnBeforeUnloadFix.patch
          2 kB
          Jesse Bonzo

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            vitiate Jesse Bonzo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: